Disabling multicast discovery means that detection peaks will only be sent to specific addresses. The addresses / hosts are those specified in the discovery.zen.ping.unicast.hosts file.
Please note that you can specify one address. When a node is merged, it becomes aware of all the nodes in the cluster and can communicate directly with them.
To clarify, using the Jettros example: discovery.zen.unicast.hosts:["127.0.0.1:9300"] will result in nodes bound to 9301 and 9302 only 9300 ping.
If 9301 connects first, it “already knows” all the other nodes in the cluster (9300 in total).
If 9302 joins him, he learns about 9301 and vice versa. If 9301 and 9302 cannot connect to 9300, the cluster will not be formed.
source share