# Discovery.zen.minimum\_master\_nodes problem

**URL:** <https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250>\
**Category:** Elasticsearch\
**Created:** [April 4, 2016, 2:57pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250 "2016-04-04T14:57:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zsolt\_Bakonyi](https://avatars.discourse-cdn.com/v4/letter/z/c89c15/32.png) [@Zsolt\_Bakonyi](https://discuss.elastic.co/u/Zsolt_Bakonyi)\
**Post date:** [April 4, 2016, 2:57pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250/1 "2016-04-04T14:57:12Z")

</div>

Hi guys.

I have a 3 nodes cluster. I had split brain issue in my test environment. Now i read a lot about discovery.zen.minimum\_master\_nodes, so i've set it to 2 on each node.

Restarted all of my nodes, but [http://myhost:9200/\_cat/master](http://myhost:9200/_cat/master) says i have only one master:  
3MiYPIsMRvGv004zcYpWum [192.168.xxx.xxx](http://192.168.xxx.xxx) [192.168.xxx.xxx](http://192.168.xxx.xxx) node-1

Should i have to set something else up to make it work? Thank you.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 4, 2016, 3:30pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250/2 "2016-04-04T15:30:22Z")

</div>

You should always have exactly one master in a cluster. minimum\_master\_nodes details the number of master eligible nodes that need to participate in an election and agree in order to elect a master. By setting this to 2 with 3 master eligible nodes, you eliminate the risk that a single partitioned node can elect itself master and cause 2 master nodes to exist simultanously.

---

<div class="post-metadata">

**Author:** ![Zsolt\_Bakonyi](https://avatars.discourse-cdn.com/v4/letter/z/c89c15/32.png) [@Zsolt\_Bakonyi](https://discuss.elastic.co/u/Zsolt_Bakonyi)\
**Post date:** [April 4, 2016, 3:38pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250/3 "2016-04-04T15:38:33Z")

</div>

Hmm your answer shows things from different angle. Thank you. 🙂

---

<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:02pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-problem/46250/4 "2017-07-05T23:02:34Z")

</div>


