# Will an even number of master nodes cause split brain situation with 7.x version of ES?

**URL:** <https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654>\
**Category:** Elasticsearch\
**Created:** [February 10, 2020, 6:23pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654 "2020-02-10T18:23:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ted.fed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ted.fed/32/56636_2.png) [@ted.fed](https://discuss.elastic.co/u/ted.fed)\
**Post date:** [February 10, 2020, 6:23pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/1 "2020-02-10T18:23:20Z")

</div>

Due to some limitation with our provisioning system, it is difficult to provision an odd number of nodes.  
For some other technologies, we have provisioned zookeepers with an even number of nodes for 2-3 years now and they never ran into split-brain situations.  
So I wanted to check if the same can be expected from ES master node clusters too.

Example:  
If we have a 6 node master cluster, then does the quorum occur at 3 nodes or 4 nodes ?

I would expect the quorum formula to be: ceil(N/2) as there in zookeeper too. But a confirmation would be much appreciated.

---

<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:** [February 10, 2020, 6:29pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/2 "2020-02-10T18:29:25Z")

</div>

> [@ted.fed](#):
>
> So I wanted to check if the same can be expected from ES master node clusters too.

Even number of nodes is fine, as long as it is greater than 2.

> [@ted.fed](#):
>
> If we have a 6 node master cluster, then does the quorum occur at 3 nodes or 4 nodes ?

4 nodes would be required for quorum as a strict majority is required.

---

<div class="post-metadata">

**Author:** ![ted.fed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ted.fed/32/56636_2.png) [@ted.fed](https://discuss.elastic.co/u/ted.fed)\
**Post date:** [February 10, 2020, 6:39pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/3 "2020-02-10T18:39:13Z")

</div>

Thanks Christian.  
Can you pls also point to some documentation link for the same?  
It would be good to see some official recommendation too.

---

<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:** [February 10, 2020, 6:49pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/4 "2020-02-10T18:49:43Z")

</div>

The [docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-quorums.html) describe the need for a majority of master eligible nodes to be present. Having an even number of nodes in a cluster is not uncommon, although they are typically distributed across 3 availability zones.

---

<div class="post-metadata">

**Author:** ![ted.fed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ted.fed/32/56636_2.png) [@ted.fed](https://discuss.elastic.co/u/ted.fed)\
**Post date:** [February 10, 2020, 7:12pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/5 "2020-02-10T19:12:22Z")

</div>

Thank you Christian !

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [February 10, 2020, 7:25pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/6 "2020-02-10T19:25:19Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Even number of nodes is fine, as long as it is greater than 2.

To be clear, even with 2 master-eligible nodes there is no risk of split-brain. The worst thing with a cluster with just 2 master-eligible nodes is you lose half-or-more of them (i.e. one) and the cluster stops working until they come back.

---

<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:** [March 9, 2020, 7:25pm UTC](https://discuss.elastic.co/t/will-an-even-number-of-master-nodes-cause-split-brain-situation-with-7-x-version-of-es/218654/7 "2020-03-09T19:25:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
