In ES-2 nodes cluster set up (Master- Master).If one node is down and meanwhile some new data is indexed on other node,then how data will be synced on both nodes when both are up?
Config Settings:
ES Config:
Node 1:
cluster.name: mycluster node.name: "node1"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.100.103"] # IP of node2
Node 2:
If you have 2 master eligible nodes in the cluster discovery.zen.minimum_master_nodes should be set to 2. This will stop data from being indexed while only one master eligible node is available, which will prevent data loss. If you want to be able to continue indexing while one master eligible node is unavailable, you need to have a total of 3 master eligible nodes in the cluster as this will allow the remaining 2 nodes to elect a master node by majority decision.
With your current configuration you could end up with a split brain which could lead to data loss.
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.