Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can ElasticSearch node join cluster at runtime?

Assume there are 3 running nodes launched with multicast=false and unicast=true, but no unicast nodes are given when starting. After they all get up, they are not aware of each other.

Is there a way to tell each one IP address of the other two so they can do discovery at runtime and join to same cluster?

like image 781
x1a0 Avatar asked Mar 14 '26 18:03

x1a0


1 Answers

Yes, add the ip addresses of all the other nodes in the cluster to the

discovery.zen.ping.unicast.hosts property,

in the elasticsearch.yml file in the config folder.

Say you have three nodes, in each node, add the address of the other two nodes as below:

discovery.zen.ping.unicast.hosts: ["xx.xx.xxx.xx","yy.yy.yy.yy"]
like image 129
BatScream Avatar answered Mar 18 '26 01:03

BatScream



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!