How do you programmatically configure hazelcast for the multicast discovery mechanism?

后端 未结 7 1253
-上瘾入骨i
-上瘾入骨i 2020-12-05 13:37

How do you programmatically configure hazelcast for the multicast discovery mechanism?


Details:

The documentation only supplies an example for TCP/IP

7条回答
  •  猫巷女王i
    2020-12-05 14:34

    The problem appearently is that the cluster starts (and stops) and doesn't wait till enough members are in the cluster. You can set the hazelcast.initial.min.cluster.size property, to prevent this from happening.

    You Can set 'hazelcast.initial.min.cluster.size' programmatically using:

    Config config = new Config(); 
    config.setProperty("hazelcast.initial.min.cluster.size","3");
    

提交回复
热议问题