# How do I avoid split brain in dual zone on 7.5?

**URL:** <https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297>\
**Category:** Elasticsearch\
**Created:** [August 9, 2020, 9:48am UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297 "2020-08-09T09:48:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mill](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mill](https://discuss.elastic.co/u/Mill)\
**Post date:** [August 9, 2020, 9:48am UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/1 "2020-08-09T09:48:37Z")

</div>

I have five servers in zone A and zone B each.

So I can configure 3 master nodes in zone A and 2 master nodes in zone B  
a cluster.

Or I can use a cluster of 3 master nodes in zone A and zone B, and set up a tribe node to connect the two cluster

Which configuration is better for HA and will not split brain?

What happens if the connection between the two zone is interrupted.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 9, 2020, 1:43pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/2 "2020-08-09T13:43:41Z")

</div>

You cannot achieve true HA with only 2 zones.

If Zone B loses connectivity with Zone A, it cannot tell if

1. that means that the network failed and Zone A is actually still operating, in which case Zone B should stand down, _or_
2. that all of Zone A failed, and Zone B should take over control of the cluster.

There is no possible safe configuration because there is no way for the software to distinguish between the two scenarios.

For this to work you need a 3rd zone with at least 1 node it in to act as a tie-breaker. The safe option is 2 nodes in Zone A, 2 nodes in Zone B, 1 node in Zone C. Then, as long as 2 ~~nodes~~ zones are available and can communicate with one another, they will have a majority and will control the cluster.

---

<div class="post-metadata">

**Author:** ![Mill](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mill](https://discuss.elastic.co/u/Mill)\
**Post date:** [August 9, 2020, 2:34pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/3 "2020-08-09T14:34:33Z")

</div>

thank you for your help.

Does it mean there is a possibility of split brain? Or is it just that the cluster does not work?

I have another question. If I arrange the same number of data nodes in zone A and zone B

What happens when A and B lose connection?

My English isn't very good, please don't mind.  
Thank you again for your time.

---

<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:** [August 9, 2020, 4:48pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/4 "2020-08-09T16:48:21Z")

</div>

> [@Mill](#):
>
> Does it mean there is a possibility of split brain? Or is it just that the cluster does not work?

The cluster may stop working until the connection is restored, but will not lose data. Some people call this "split brain". The [manual](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability.html) covers how to set up your cluster for high availability in considerable depth.

> [@Mill](#):
>
> What happens when A and B lose connection?

The one with the majority of the master-eligible nodes will carry on working, the other side will not. If neither side has a majority of the master-eligible nodes then they may both stop working.

---

<div class="post-metadata">

**Author:** ![Mill](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mill](https://discuss.elastic.co/u/Mill)\
**Post date:** [August 10, 2020, 3:39pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/5 "2020-08-10T15:39:40Z")

</div>

I'm very grateful

It's too hard...

and I can ask again?

I have five servers in A and B, a total of ten.

Each configuration is as follows :

RAM 512GB  
SSD 800G \*10

So I want to set up a data node on each hard drive.

What can i do??

My original plan is as follows :

Zone A :

3 master node in 3 server (System Disk - SSD)  
50 data node in 5 server (Data Disk - SSD)  
kibana \*1

Zone B:  
2 master node in 2 server (System Disk - SSD)  
50 data node in 5 server (Data Disk - SSD)  
Kibana \*1

and find another server to act as a client node (master node:false / data node:false)

But the above plan doesn't seem to work, can you advise me?

My English isn't very good, please don't mind.  
Thank you again for your time.

---

<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:** [August 10, 2020, 3:54pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/6 "2020-08-10T15:54:04Z")

</div>

Sounds fine to me, although running so many nodes on a single server is pretty risky as you will lose them all when the server breaks. Better to have more/smaller servers.

---

<div class="post-metadata">

**Author:** ![Mill](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mill](https://discuss.elastic.co/u/Mill)\
**Post date:** [August 10, 2020, 4:01pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/7 "2020-08-10T16:01:51Z")

</div>

> [@DavidTurner](#):
>
> Sounds fine to me, although running so many nodes on a single server is pretty risky as you will lose them all when the server breaks. Better to have more/smaller servers.

Server already bought .. T\_T

Our server room experience is more often that a single or multiple hard drives are damaged

That’s why I have the above configuration ideas

So if it is to reduce the number of nodes, what can I do?

Set two or more hard disk paths in the path.data of the same node ?

But a single servo memory has 512GB.

A node can only use up to 32GB.

Will it be too wasteful of memory?

---

<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:** [September 7, 2020, 4:01pm UTC](https://discuss.elastic.co/t/how-do-i-avoid-split-brain-in-dual-zone-on-7-5/244297/8 "2020-09-07T16:01:57Z")

</div>

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