Discovery.zen.ping.unicast.hosts setting for master and client nodes?

If I have 3 master nodes and 1 client node, what should the "discovery.zen.ping.unicast.hosts" setting be in elasticsearch.yml? Say I have ip_master0, ip_master1, ip_master2, and ip_client

Should it be this?

  • For the master nodes. discovery.zen.ping.unicast.hosts: ["ip_master0", "ip_master1", "ip_master2"]
  • For the client node? discovery.zen.ping.unicast.hosts: ["ip_master0", "ip_master1", "ip_master2", "ip_client"]

Or should it be discovery.zen.ping.unicast.hosts: ["ip_master0", "ip_master1", "ip_master2", "ip_client"] for ALL nodes?

All the 3 master nodes all time.

@dadoonet, your post and my edit crossed.

So are you saying it should be

discovery.zen.ping.unicast.hosts: ["ip_master0", "ip_master1", "ip_master2"]

for ALL nodes, both maser and client?

Yes. That's what I meant.

@dadoonet Thank you.

then how client or data node get connected

Do you mean a Client Node or the TransportClient?

client node

Client node is a node which belongs to the cluster. It has the cluster state from the master node.
In the cluster state, you have the list of all nodes.

So client node knows how to join all data nodes.