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:

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:

cluster.name: mycluster
node.name: "node2"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.101.103"] #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.