本文介绍了如何禁用点燃基线自动调节?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点燃2.8.0,我启用持久性代码,如下所示:
Ignite 2.8.0, I enable persistent, code like this:
IgniteConfiguration igniteCfg = new IgniteConfiguration();
//igniteCfg.setClientMode(true);
DataStorageConfiguration dataStorageCfg = new DataStorageConfiguration();
dataStorageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
igniteCfg.setDataStorageConfiguration(dataStorageCfg);
Ignite ignite = Ignition.start(igniteCfg);
然后出现如下异常:
Caused by: class org.apache.ignite.spi.IgniteSpiException: Joining persistence node to in-memory cluster couldn't be allowed due to baseline auto-adjust is enabled and timeout equal to 0
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1997)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:1116)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:427)
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:2099)
at org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
... 15 more
任何人都能帮我吗?
谢谢.
推荐答案
启动第一个节点后,调用 ignite.cluster().baselineAutoAdjustEnabled(false)
After starting first node, invoke ignite.cluster().baselineAutoAdjustEnabled(false)
您还可以使用 bin/control.(sh | bat)--baseline auto_adjust [disable | enable] [timeout< timeoutMillis>] [-是]
请注意,我们不建议运行持久性〜非持久性混合集群,因为它们很少进行测试.如果需要,请确保数据区域在所有节点上都具有相同的persistenceEnabled设置.
Please note that we don't recommend running mixed persistent~non-persistent clusters since they see very few testing. If you must, make sure that data regions have the same persistenceEnabled settings on all nodes.
这篇关于如何禁用点燃基线自动调节?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!