# Cross-DC clusters - specific dangers

**URL:** https://discuss.elastic.co/t/cross-dc-clusters-specific-dangers/23225
**Category:** Elasticsearch
**Created:** [April 14, 2015, 6:53am UTC](https://discuss.elastic.co/t/cross-dc-clusters-specific-dangers/23225 "2015-04-14T06:53:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aken](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@aken](https://discuss.elastic.co/u/aken)
#### Post date: [April 14, 2015, 6:53am UTC](https://discuss.elastic.co/t/cross-dc-clusters-specific-dangers/23225/1 "2015-04-14T06:53:11Z")

</div>

I am aware that cross data-center clusters are not recommended, since they  
violate one of the core assumptions of ES, namely that all nodes are equal.  
But what _specifically_ (apart from obvious problems associated with  
network failure) can this lead too: is it just high or "irregular" latency  
and the difficulty in debugging issues when node-reponse times are unequal,  
or can more critical issues such as split brain also arise from this?

--  
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/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [April 14, 2015, 7:45am UTC](https://discuss.elastic.co/t/cross-dc-clusters-specific-dangers/23225/2 "2015-04-14T07:45:03Z")

</div>

Split-Brain risk is not related to latency, it can happen on any network  
which is dynamic.

The main issue is latency, yes. This is a killer. If latency is too high,  
real-time systems can be seen as unusable from a user perspective.

Second issue is network bandwith. LAN traffic is a magnitude faster than  
WAN traffic.

Another issue is timing. ES does not have vector clocks yet. That means, a  
node is not aware of a local time and a global time, instead, the cluster  
assumes all nodes share the same clock. As a consequence, the ES code for  
indexing and search is relatively easy to maintain (it is assumed the  
causality rule "I write first, then you can read next" is never broken). In  
a distributed system, this rule is no longer 100% true when reads and  
writes are intertwined and forwarded to other nodes, and missing  
coordination can lead to all kind of strange effects (hangs, missing data,  
wrong data, conflicts, just to name a few). These effects are expected to  
be more frequent on a cluster that spans DCs. I expect ES 2.0 will be a  
step forward, it seems it will introduce sequence numbers for operations,  
and probably a distributed clock.

With snapshot/restore, data can already be transported between two ES  
clusters in two DCs, By paying the price of lagging behind a leading  
cluster, another cluster can be set up as a follower cluster quite easily,  
keeping latency low, and working around the timing challenge.

Jörg

On Tue, Apr 14, 2015 at 8:53 AM, AndrewK [kenworthyas@gmail.com](mailto:kenworthyas@gmail.com) wrote:

> I am aware that cross data-center clusters are not recommended, since they  
> violate one of the core assumptions of ES, namely that all nodes are equal.  
> But what _specifically_ (apart from obvious problems associated with  
> network failure) can this lead too: is it just high or "irregular" latency  
> and the difficulty in debugging issues when node-reponse times are unequal,  
> or can more critical issues such as split brain also arise from this?
> 
> --  
> 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/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a8fe93fb-dfd1-414a-86d7-2ebad66107a4%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/CAKdsXoHCEF62XewV-DCihdnMwTvPpWV1zAWiBqP\_m6jFoVyU\_g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHCEF62XewV-DCihdnMwTvPpWV1zAWiBqP_m6jFoVyU_g%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:19am UTC](https://discuss.elastic.co/t/cross-dc-clusters-specific-dangers/23225/3 "2017-07-06T00:19:57Z")

</div>


