I have 3 elastic(5.1.2) nodes (01,02,03), of which 01,02 are in Datacenter1 and 03 is in Datacenter2. the elasticsearch.yml on all 3 has the below settings
Cluster name is same across all - it is cluster01
host and node names specific to the Linux server , like node01 ,node02 and node03.
In the above scenario is there a Master ? and slave ?
what is the best way to stop/start ES ? 1 node at a time , we tried to stop/start 3,2,1 , the nodes threw errors like no master etc
path: /_bulk, params: {}org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/2/no master];
is it recommended to switch to master/slave mode ? Currently this set up of ours is running fine,wanted to make sure the stop/start of nodes to minimize errors.
I have below settings and was wondering why did that error message came like no master ( meaning it was refering to my node01) and no data was being lost ?
After going through the documentation , it says below.
This setting must be set to a quorum of your master eligible nodes. It is recommended to avoid having only two master eligible nodes, since a quorum of two is two. Therefore, a loss of either master eligible node will result in an inoperable cluster
Any thoughts ? And also how did you come up with 2 ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.