# Discovery.zen.minimum\_master\_nodes

**URL:** <https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes/39924>\
**Category:** Elasticsearch\
**Created:** [January 22, 2016, 9:21pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes/39924 "2016-01-22T21:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soodlikesjava](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@soodlikesjava](https://discuss.elastic.co/u/soodlikesjava)\
**Post date:** [January 22, 2016, 9:21pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes/39924/1 "2016-01-22T21:21:53Z")

</div>

Can anyone please explain me the significance of setting discovery.zen.minimum\_master\_nodes and how it avoids split brain.Also the formula mentioned to set this value is not clear .what would be the number of nodes in the formula .formula is (number of nodes/2 +1) so this number of nodes are total number of nodes in cluster or number of eligible master nodes in cluster?

---

<div class="post-metadata">

**Author:** ![AndreKR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrekr/32/6233_2.png) [@AndreKR](https://discuss.elastic.co/u/AndreKR)\
**Post date:** [January 23, 2016, 12:47am UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes/39924/2 "2016-01-23T00:47:09Z")

</div>

[The documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html) says:

> This setting must be set to a quorum of your **master eligible** nodes.

The way it works is that in the case of a network partition (your cluster split in two parts) the side with less nodes does not elect a master and instead becomes read-only.  
If both sides would elect a master node, you would end up with two separate clusters and Elasticsearch doesn't know how to merge them together after the network split ends, because data might be conflicting between the two clusters.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes/39924/3 "2017-07-05T23:22:12Z")

</div>


