Data sync issues in ES 2 nodes Master Master Cluster Set Up if one node is down

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: mycluster "node1"
node.master: true true [""] # IP of node2
Node 2: mycluster "node2"
node.master: true true [""] #IP of node1

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.

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