# Enabling Live/Live Disaster Recovery while avoiding split brain

**URL:** <https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217>\
**Category:** Elasticsearch\
**Created:** [December 11, 2014, 4:44pm UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217 "2014-12-11T16:44:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Artus](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@David\_Artus](https://discuss.elastic.co/u/David_Artus)\
**Post date:** [December 11, 2014, 4:44pm UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217/1 "2014-12-11T16:44:28Z")

</div>

My understanding is that recovery from Split Brain situations is  
troublesome and we are encourages to ensure that a cluster is only active  
if there is a quorum of candidate masters , we do that by setting  
_discovery.zen.minimum\_master\_nodes_ to ((cm/2) + 1), that is a true  
majority of candidate masters.

I also see that many folks want to enable resilience in the event of  
disaster by running a cluster across two data centres. Lose one data center  
and we just keep running in the other - we still have half our servers, so  
with correct over-provisioning we can cope with the workload. No need to  
rebuild the cluster and restore from backup. We have what may be called  
Live/Live Disaster Recovery (DR)

I see two issues with this approach to DR. If we lose half our candidate  
master nodes, by definition we cannot achieve a quorum, we won't have a  
true majority.

A slightly more subtle problem is that we probabaly also set  
_gateway.recover\_after\_nodes_ to a high value (say 8 of 10) so that in  
normal running with a few missing nodes we don't inadvertantly get into  
shard shuffling. Once again with a loss of half our estate we will not have  
enough nodes to satisfy that setting.

My conclusion is that while Live/Live operation across two Data Centers is  
possible the transition to a reduced state requires reconfiguration, the  
system will not "just keep running" unless we open ourselves to Split Brain  
and replica shuffling.

Comments please?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 11, 2014, 6:11pm UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217/2 "2014-12-11T18:11:58Z")

</div>

It's not recommended to do cross DC clusters for these reasons (and more).

You're be better off having two clusters and then syncing data between them.

On 11 December 2014 at 17:44, David Artus [djna01@gmail.com](mailto:djna01@gmail.com) wrote:

> My understanding is that recovery from Split Brain situations is  
> troublesome and we are encourages to ensure that a cluster is only active  
> if there is a quorum of candidate masters , we do that by setting  
> _discovery.zen.minimum\_master\_nodes_ to ((cm/2) + 1), that is a true  
> majority of candidate masters.
> 
> I also see that many folks want to enable resilience in the event of  
> disaster by running a cluster across two data centres. Lose one data center  
> and we just keep running in the other - we still have half our servers, so  
> with correct over-provisioning we can cope with the workload. No need to  
> rebuild the cluster and restore from backup. We have what may be called  
> Live/Live Disaster Recovery (DR)
> 
> I see two issues with this approach to DR. If we lose half our candidate  
> master nodes, by definition we cannot achieve a quorum, we won't have a  
> true majority.
> 
> A slightly more subtle problem is that we probabaly also set  
> _gateway.recover\_after\_nodes_ to a high value (say 8 of 10) so that in  
> normal running with a few missing nodes we don't inadvertantly get into  
> shard shuffling. Once again with a loss of half our estate we will not  
> have enough nodes to satisfy that setting.
> 
> My conclusion is that while Live/Live operation across two Data Centers is  
> possible the transition to a reduced state requires reconfiguration, the  
> system will not "just keep running" unless we open ourselves to Split Brain  
> and replica shuffling.
> 
> Comments please?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/f494cb6e-c69e-4cb6-a9a6-c8b102fe1372%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8wZN4wVBsEsMbV8xUbGYXRo%2B8jnq1URJStnGLOTk%3Dbug%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8wZN4wVBsEsMbV8xUbGYXRo%2B8jnq1URJStnGLOTk%3Dbug%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [December 11, 2014, 7:00pm UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217/3 "2014-12-11T19:00:43Z")

</div>

If I remember correctly, version 1.4 can turn nodes that cant connect to  
the cluster to read only mode.

On Thursday, December 11, 2014 4:44:28 PM UTC, David Artus wrote:

> My understanding is that recovery from Split Brain situations is  
> troublesome and we are encourages to ensure that a cluster is only active  
> if there is a quorum of candidate masters , we do that by setting  
> _discovery.zen.minimum\_master\_nodes_ to ((cm/2) + 1), that is a true  
> majority of candidate masters.
> 
> I also see that many folks want to enable resilience in the event of  
> disaster by running a cluster across two data centres. Lose one data center  
> and we just keep running in the other - we still have half our servers, so  
> with correct over-provisioning we can cope with the workload. No need to  
> rebuild the cluster and restore from backup. We have what may be called  
> Live/Live Disaster Recovery (DR)
> 
> I see two issues with this approach to DR. If we lose half our candidate  
> master nodes, by definition we cannot achieve a quorum, we won't have a  
> true majority.
> 
> A slightly more subtle problem is that we probabaly also set  
> _gateway.recover\_after\_nodes_ to a high value (say 8 of 10) so that in  
> normal running with a few missing nodes we don't inadvertantly get into  
> shard shuffling. Once again with a loss of half our estate we will not  
> have enough nodes to satisfy that setting.
> 
> My conclusion is that while Live/Live operation across two Data Centers is  
> possible the transition to a reduced state requires reconfiguration, the  
> system will not "just keep running" unless we open ourselves to Split Brain  
> and replica shuffling.
> 
> Comments please?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 11, 2014, 10:38pm UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217/4 "2014-12-11T22:38:18Z")

</div>

Yes, this is new in 1.4.

On 11 December 2014 at 20:00, Elvar Böðvarsson [elvarb@gmail.com](mailto:elvarb@gmail.com) wrote:

> If I remember correctly, version 1.4 can turn nodes that cant connect to  
> the cluster to read only mode.
> 
> On Thursday, December 11, 2014 4:44:28 PM UTC, David Artus wrote:
> 
> > My understanding is that recovery from Split Brain situations is  
> > troublesome and we are encourages to ensure that a cluster is only active  
> > if there is a quorum of candidate masters , we do that by setting  
> > _discovery.zen.minimum\_master\_nodes_ to ((cm/2) + 1), that is a true  
> > majority of candidate masters.
> > 
> > I also see that many folks want to enable resilience in the event of  
> > disaster by running a cluster across two data centres. Lose one data center  
> > and we just keep running in the other - we still have half our servers, so  
> > with correct over-provisioning we can cope with the workload. No need to  
> > rebuild the cluster and restore from backup. We have what may be called  
> > Live/Live Disaster Recovery (DR)
> > 
> > I see two issues with this approach to DR. If we lose half our candidate  
> > master nodes, by definition we cannot achieve a quorum, we won't have a  
> > true majority.
> > 
> > A slightly more subtle problem is that we probabaly also set  
> > _gateway.recover\_after\_nodes_ to a high value (say 8 of 10) so that in  
> > normal running with a few missing nodes we don't inadvertantly get into  
> > shard shuffling. Once again with a loss of half our estate we will not  
> > have enough nodes to satisfy that setting.
> > 
> > My conclusion is that while Live/Live operation across two Data Centers  
> > is possible the transition to a reduced state requires reconfiguration, the  
> > system will not "just keep running" unless we open ourselves to Split Brain  
> > and replica shuffling.
> > 
> > Comments please?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6dcfdeed-370f-426a-a5b1-f72767838d7f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9yE3c0%3D27yNqq6LkANYE2XQgZanhdPkooRbwmJ7VOLug%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9yE3c0%3D27yNqq6LkANYE2XQgZanhdPkooRbwmJ7VOLug%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:44am UTC](https://discuss.elastic.co/t/enabling-live-live-disaster-recovery-while-avoiding-split-brain/21217/5 "2017-07-06T00:44:02Z")

</div>


