3

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?

x1a0
  • 9,984
  • 5
  • 22
  • 30

1 Answers1

2

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"]
BatScream
  • 19,260
  • 4
  • 52
  • 68
  • Can you try updating the parameter in the node setting via the _cluster API and refreshing it dynamically. – BatScream Aug 28 '14 at 02:58