# Avoid split brain with new Elasticsearch 7.0 after discovery.zen.minimum\_master\_nodes removal

**URL:** <https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877>\
**Category:** Elasticsearch\
**Created:** [April 15, 2019, 10:05am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877 "2019-04-15T10:05:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Askia\_Mohamed\_Kadri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askia_mohamed_kadri/32/134665_2.png) [@Askia\_Mohamed\_Kadri](https://discuss.elastic.co/u/Askia_Mohamed_Kadri)\
**Post date:** [April 15, 2019, 10:05am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/1 "2019-04-15T10:05:31Z")

</div>

Hi everybody,

In the current release of Elasticsearch, the dicovery.zen.minimum\_master\_nodes settings have been removed. I have a cluster of 5 nodes cross data center (yes I KNOW it's not a good idea but I don't really have the choice), 2 on one Data Center and the 3 others on the other one. Setting the dicovery.zen.minimum\_master\_nodes settings to 3 assured me to still be UP in case of a split brain.  
How I'm I supposed to this now with the **cluster.initial\_master\_nodes** only as it is only for the very first time the cluster is started?

Best regards

---

<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:** [April 15, 2019, 10:27am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/2 "2019-04-15T10:27:55Z")

</div>

> [@Askia\_Mohamed\_Kadri](#):
>
> How I'm I supposed to this now with the **cluster.initial\_master\_nodes** only as it is only for the very first time the cluster is started?

Elasticsearch (versions 7 and later) manages the size of the voting set of master nodes itself, so you don't have to worry about this any more. I made a short video about this which shows how to observe what's going on under the hood:

[![](https://us1.discourse-cdn.com/elastic/original/3X/3/8/385887c54f9c55401004de29549638b4eeb39601.jpeg "Growing and shrinking an Elasticsearch 7 cluster") ](https://www.youtube.com/watch?v=VX2Yt-F8qBs)

---

<div class="post-metadata">

**Author:** ![Askia\_Mohamed\_Kadri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askia_mohamed_kadri/32/134665_2.png) [@Askia\_Mohamed\_Kadri](https://discuss.elastic.co/u/Askia_Mohamed_Kadri)\
**Post date:** [April 18, 2019, 7:18am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/3 "2019-04-18T07:18:11Z")

</div>

Hey @DavidTurner thanks for your response.  
Yes, I understand what you mean. But let's assume that my cluster is UP. I have node A, B, C on Data Center 1 and nodes D, E on Data Center 2. They already proceeded to a vote and the master nodes are A, B, C and D.  
What will happen if I loose connexion between Data Center 1 and 2?

---

<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:** [April 18, 2019, 7:36am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/4 "2019-04-18T07:36:07Z")

</div>

> [@Askia\_Mohamed\_Kadri](#):
>
> What will happen if I loose connexion between Data Center 1 and 2?

The cluster might become unavailable, or may survive in one or other data centre (but not both). When the connection is restored the cluster will recover.

---

<div class="post-metadata">

**Author:** ![Askia\_Mohamed\_Kadri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askia_mohamed_kadri/32/134665_2.png) [@Askia\_Mohamed\_Kadri](https://discuss.elastic.co/u/Askia_Mohamed_Kadri)\
**Post date:** [April 18, 2019, 7:49am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/5 "2019-04-18T07:49:53Z")

</div>

Fine then. Thanks for your availability @DavidTurner

---

<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:** [April 18, 2019, 7:58am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/6 "2019-04-18T07:58:46Z")

</div>

I'm not sure from your reply whether this was the answer you're looking for or not, but if not I'd be happy to hear more about what we're missing here. Note that this hasn't changed in version 7 - the answer I gave applies to earlier versions too.

---

<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:** [May 16, 2019, 7:58am UTC](https://discuss.elastic.co/t/avoid-split-brain-with-new-elasticsearch-7-0-after-discovery-zen-minimum-master-nodes-removal/176877/7 "2019-05-16T07:58:53Z")

</div>

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