I was trying to start 2 hazelcast nodes simultaneously, and they can not discover each other. It's true for both multicast and tcp-ip discovery. If I restart one node later - they see each other. Is there a way to make them discover each other without restarting? Or how to postpone discovery during node start-up?
Configuration:
<network>
<port auto-increment="true">5701</port>
<outbound-ports>
<!--
Allowed port range when connecting to other nodes.
0 or * means use system provided port.
-->
<ports>0</ports>
</outbound-ports>
<join>
<multicast enabled="true">
<multicast-group>224.3.3.6</multicast-group>
<multicast-port>5705</multicast-port>
</multicast>
</join>
</network>
or
<multicast enabled="false">
<multicast-group>224.3.3.6</multicast-group>
<multicast-port>5705</multicast-port>
</multicast>
<tcp-ip enabled="true">
<member>host1:5701</member>
<member>host2:5701</member>
<member>host3:5701</member>
<member>host4:5701</member>
</tcp-ip>
UPD: Solved by manually add random sleep on startup before cluster init.