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
Before this configuration ES data was present on one my node (Node -1) and no data on Node-2.
Now when I search indexes ,I get result from both and both nodes shows Node-1 is elected as master.
But when I stop my ES on Node-1 ,then on node-2 it is elected as master but my data is not synced here.
Indexes exists on Node-2 but not ES data.
How is data synced on both the nodes ?