Elasticsearch clustering process

I am trying to understand how the elasticsearch clustering works. Whether it considers cluster name to form a cluster and will pickup the cluster state settings from discovery.zen.ping.unicast.hosts host names? I think it is not necessary to give all host names which needs to be part of the elasticsearch cluster. So how it will decide about the specific hosts to be part of the cluster.

This is where dedicated masters work best, that way you only need 3 hosts listed there.

Otherwise look at using a DNS CNAME.

Thank you. So mentioning the 3 dedicated master nodes in discovery.zen.ping.unicast.hosts setting is fine in all elasticsearch nodes? (master, data and coordinating).

Yes!

Sure Thanks. So in this case if another node has same cluster name but not been configured with any of these three master nodes then it won't join this cluster right?

Yes.
But that's not a good idea, because there is a possibility of confusion.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.