How does ElasticSearch node join the cluster at runtime?
Suppose there are 3 running nodes with multicast=false
and unicast=true
, but no unicast nodes are assigned at startup. When they all get up, they don't know about each other.
Is there a way to tell each IP address of the other two so that they can perform runtime discovery and join the same cluster?
source to share
Yes, add the addresses of ip
all other cluster nodes to
discovery.zen.ping.unicast.hosts
,
in a file elasticsearch.yml
in the config folder.
Let's say you have three nodes, in each node, add the address of the other two nodes as shown below:
discovery.zen.ping.unicast.hosts: ["xx.xx.xxx.xx","yy.yy.yy.yy"]
source to share