Elasticsearch clustering process


(MJay) #1

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.


(Mark Walkom) #2

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

Otherwise look at using a DNS CNAME.


(MJay) #3

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).


(Mark Walkom) #4

Yes!


(MJay) #5

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?


(Mark Walkom) #6

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


(system) #7

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