如何禁用点燃基线自动调整?

How to disable ignite baseline auto-just?

Ignite 2.8.0,我启用持久化,代码如下:

        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)

您也可以使用bin/control.(sh|bat) --baseline auto_adjust [disable|enable] [timeout <timeoutMillis>] [--yes]

请注意,我们不推荐 运行 混合持久~非持久集群,因为它们很少进行测试。如果必须,请确保数据区域在所有节点上具有相同的 persistenceEnabled 设置。