Version: 1.4. 
Say there are 2 nodes X and Y, both capable of becoming master. 
When network goes down, both nodes get disconnected from each other and 
assume the responsibility of master. 
When network is restored, they don't ping each other and form a cluster.

Elasticsearch service has to be restarted on any one of the nodes for them 
to form a cluster. Even after they form a cluster, all primary shards 
remain on one node ( on which the service was restarted ), and all replica 
shards are on the other node.


This document

http://www.elastic.co/guide/en/elasticsearch/guide/current/_important_configuration_changes.html


mentions that there has to be an uneven number of master eligible nodes.


Queries:


1) Is there a way of avoiding split brain problem in 2 node cluster ?

2) After network is restored, shouldn't the nodes ping each other and form 
a cluster ?

3) After the service is restarted to form the cluster, why don't the 
primary shards get distributed on both the nodes ?



Thanks,

Gourav

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d15234b3-0ea1-4390-b136-2f02f69cd3f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to