# Problem with keeping in sync Elasticsearch across two data centers

**URL:** <https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955>\
**Category:** Elasticsearch\
**Created:** [February 21, 2014, 4:24pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955 "2014-02-21T16:24:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dario\_Rossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dario_rossi/32/1672_2.png) [@Dario\_Rossi](https://discuss.elastic.co/u/Dario_Rossi)\
**Post date:** [February 21, 2014, 4:24pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/1 "2014-02-21T16:24:29Z")

</div>

Hi,  
I've the following problem: our application publishes content to an  
Elasticsearch cluster. We use local data less node for querying  
elasticsearch then, so we don't use HTTP REST and the local nodes are the  
loadbalancer. Now they came with the requirement of having the cluster  
replicated to another data center too (and in the future maybe another  
too... ) for resilience.

At the very beginning we thought of having one large cluster that goes  
across data centers (crazy). This solution has the following problems:

- The cluster has the split-brain problem (!)
- The client data less node will try to do requests across different data  
centers (is there a solution to this???). I can't find a way to avoid this.  
We don't want this to happen because of a) latency and b) firewalling  
issues.

So we started to think that this solution is not really viable. So we  
thought of having one cluster per data center, which seems more sensible.  
But then here we have the problem that we must publish data to all clusters  
and, if one fails, we have no means of rolling back (unless we try to set  
up a complicated version based rollback system). I find this very  
complicated and hard to maintain, although can be somewhat doable.

My biggest problem is that we have to keep the data centers in the same  
state at any time, so that if one goes down, we can readily switch to the  
other.

Any ideas, or can you recommend some support to help use deal with 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/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Michael\_Sick](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Michael\_Sick](https://discuss.elastic.co/u/Michael_Sick)\
**Post date:** [February 21, 2014, 5:37pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/2 "2014-02-21T17:37:58Z")

</div>

Dario,

I believe that you're looking for TribeNodes

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

ES is not built to consistently cluster across DC's / larger network lags.

On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [darioros@gmail.com](mailto:darioros@gmail.com) wrote:

> Hi,  
> I've the following problem: our application publishes content to an  
> Elasticsearch cluster. We use local data less node for querying  
> elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> loadbalancer. Now they came with the requirement of having the cluster  
> replicated to another data center too (and in the future maybe another  
> too... ) for resilience.
> 
> At the very beginning we thought of having one large cluster that goes  
> across data centers (crazy). This solution has the following problems:
> 
> - The cluster has the split-brain problem (!)
> - The client data less node will try to do requests across different data  
> centers (is there a solution to this???). I can't find a way to avoid this.  
> We don't want this to happen because of a) latency and b) firewalling  
> issues.
> 
> So we started to think that this solution is not really viable. So we  
> thought of having one cluster per data center, which seems more sensible.  
> But then here we have the problem that we must publish data to all clusters  
> and, if one fails, we have no means of rolling back (unless we try to set  
> up a complicated version based rollback system). I find this very  
> complicated and hard to maintain, although can be somewhat doable.
> 
> My biggest problem is that we have to keep the data centers in the same  
> state at any time, so that if one goes down, we can readily switch to the  
> other.
> 
> Any ideas, or can you recommend some support to help use deal with 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/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [February 22, 2014, 6:32pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/3 "2014-02-22T18:32:36Z")

</div>

Hello Michael - Understand that ES is not built to maintain consistent  
cluster state across data centers. what I am wondering is whether there is  
a way for Elasticsearch to continue to replicate data onto a different data  
center (with some delay of course) so that when the primary center fails,  
the fail over data center still has most of the data (may be except for the  
last few seconds/minutes/hours).

Overall I am looking for a right way to implement cross data center  
deployment of elastic-search!

-Amit.

On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<  
[michael.sick@serenesoftware.com](mailto:michael.sick@serenesoftware.com)\> wrote:

> Dario,
> 
> I believe that you're looking for TribeNodes  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-tribe.html)
> 
> ES is not built to consistently cluster across DC's / larger network lags.
> 
> On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [darioros@gmail.com](mailto:darioros@gmail.com) wrote:
> 
> > Hi,  
> > I've the following problem: our application publishes content to an  
> > Elasticsearch cluster. We use local data less node for querying  
> > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > loadbalancer. Now they came with the requirement of having the cluster  
> > replicated to another data center too (and in the future maybe another  
> > too... ) for resilience.
> > 
> > At the very beginning we thought of having one large cluster that goes  
> > across data centers (crazy). This solution has the following problems:
> > 
> > - The cluster has the split-brain problem (!)
> > - The client data less node will try to do requests across different data  
> > centers (is there a solution to this???). I can't find a way to avoid this.  
> > We don't want this to happen because of a) latency and b) firewalling  
> > issues.
> > 
> > So we started to think that this solution is not really viable. So we  
> > thought of having one cluster per data center, which seems more sensible.  
> > But then here we have the problem that we must publish data to all clusters  
> > and, if one fails, we have no means of rolling back (unless we try to set  
> > up a complicated version based rollback system). I find this very  
> > complicated and hard to maintain, although can be somewhat doable.
> > 
> > My biggest problem is that we have to keep the data centers in the same  
> > state at any time, so that if one goes down, we can readily switch to the  
> > other.
> > 
> > Any ideas, or can you recommend some support to help use deal with 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/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan\_Beveridge](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ivan\_Beveridge](https://discuss.elastic.co/u/Ivan_Beveridge)\
**Post date:** [February 22, 2014, 9:10pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/4 "2014-02-22T21:10:44Z")

</div>

Hi Amit,

It sounds like you need separate ES clusters (one per DC) and a way to  
feed the data into them all consistently.

I happened to scan-read the tribenodes documentation - it looks like it  
could work great for reads, but (IIRC) it will not do writes.

I suspect you want some message-passing system (eg RabbitMQ) or redis  
(acting as a cache).

If you were writing (system) logs then something like logstash would  
help interface. However, I suspect that is not the case so you would  
need to find the integration solution (between message-passing / redis  
and ES) that you need for your system.

This means that you could probably use something like tribenodes for the  
reads and some message-passing/proxy system for writes.

Cheers

Ivan

On 22/02/2014 18:32, Amit Soni wrote:

> Hello Michael - Understand that ES is not built to maintain consistent  
> cluster state across data centers. what I am wondering is whether there  
> is a way for Elasticsearch to continue to replicate data onto a  
> different data center (with some delay of course) so that when the  
> primary center fails, the fail over data center still has most of the  
> data (may be except for the last few seconds/minutes/hours).
> 
> Overall I am looking for a right way to implement cross data center  
> deployment of elastic-search!
> 
> -Amit.
> 
> On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick  
> \<[michael.sick@serenesoftware.com](mailto:michael.sick@serenesoftware.com)  
> [mailto:michael.sick@serenesoftware.com](mailto:michael.sick@serenesoftware.com)\> wrote:
> 
> ```
> Dario,
> 
> I believe that you're looking for
> TribeNodes http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-tribe.html
> 
> ES is not built to consistently cluster across DC's / larger network
> lags. 
> 
> On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi <darioros@gmail.com
> <mailto:darioros@gmail.com>> wrote:
> 
> Hi, 
> I've the following problem: our application publishes content to
> an Elasticsearch cluster. We use local data less node for
> querying elasticsearch then, so we don't use HTTP REST and the
> local nodes are the loadbalancer. Now they came with the
> requirement of having the cluster replicated to another data
> center too (and in the future maybe another too... ) for
> resilience. 
> 
> At the very beginning we thought of having one large cluster
> that goes across data centers (crazy). This solution has the
> following problems:
> 
> - The cluster has the split-brain problem (!)
> - The client data less node will try to do requests across
> different data centers (is there a solution to this???). I can't
> find a way to avoid this. We don't want this to happen because
> of a) latency and b) firewalling issues.
> 
> So we started to think that this solution is not really viable.
> So we thought of having one cluster per data center, which seems
> more sensible. But then here we have the problem that we must
> publish data to all clusters and, if one fails, we have no means
> of rolling back (unless we try to set up a complicated version
> based rollback system). I find this very complicated and hard to
> maintain, although can be somewhat doable. 
> 
> My biggest problem is that we have to keep the data centers in
> the same state at any time, so that if one goes down, we can
> readily switch to the other.
> 
> Any ideas, or can you recommend some support to help use deal
> with this?
> 
> ```

--  
Ivan Beveridge

--  
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/53091254.7020001%40livejournalinc.com](https://groups.google.com/d/msgid/elasticsearch/53091254.7020001%40livejournalinc.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Michael\_Sick](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Michael\_Sick](https://discuss.elastic.co/u/Michael_Sick)\
**Post date:** [February 23, 2014, 12:03am UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/5 "2014-02-23T00:03:13Z")

</div>

Hi Amit,

Ivan is correct. You might also check out I believe that you're looking for  
TribeNodes

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

and  
see if it fits your needs for cross-dc replication.

--Mike

On Sat, Feb 22, 2014 at 1:32 PM, Amit Soni [amitsoni29@gmail.com](mailto:amitsoni29@gmail.com) wrote:

> Hello Michael - Understand that ES is not built to maintain consistent  
> cluster state across data centers. what I am wondering is whether there is  
> a way for Elasticsearch to continue to replicate data onto a different data  
> center (with some delay of course) so that when the primary center fails,  
> the fail over data center still has most of the data (may be except for the  
> last few seconds/minutes/hours).
> 
> Overall I am looking for a right way to implement cross data center  
> deployment of elastic-search!
> 
> -Amit.
> 
> On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<  
> [michael.sick@serenesoftware.com](mailto:michael.sick@serenesoftware.com)\> wrote:
> 
> > Dario,
> > 
> > I believe that you're looking for TribeNodes  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-tribe.html)
> > 
> > ES is not built to consistently cluster across DC's / larger network  
> > lags.
> > 
> > On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [darioros@gmail.com](mailto:darioros@gmail.com) wrote:
> > 
> > > Hi,  
> > > I've the following problem: our application publishes content to an  
> > > Elasticsearch cluster. We use local data less node for querying  
> > > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > > loadbalancer. Now they came with the requirement of having the cluster  
> > > replicated to another data center too (and in the future maybe another  
> > > too... ) for resilience.
> > > 
> > > At the very beginning we thought of having one large cluster that goes  
> > > across data centers (crazy). This solution has the following problems:
> > > 
> > > - The cluster has the split-brain problem (!)
> > > - The client data less node will try to do requests across different  
> > > data centers (is there a solution to this???). I can't find a way to avoid  
> > > this. We don't want this to happen because of a) latency and b) firewalling  
> > > issues.
> > > 
> > > So we started to think that this solution is not really viable. So we  
> > > thought of having one cluster per data center, which seems more sensible.  
> > > But then here we have the problem that we must publish data to all clusters  
> > > and, if one fails, we have no means of rolling back (unless we try to set  
> > > up a complicated version based rollback system). I find this very  
> > > complicated and hard to maintain, although can be somewhat doable.
> > > 
> > > My biggest problem is that we have to keep the data centers in the same  
> > > state at any time, so that if one goes down, we can readily switch to the  
> > > other.
> > > 
> > > Any ideas, or can you recommend some support to help use deal with 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/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAP8axnBOi0R\_c%3DcvMYrmpQK-z2%3D4-ik6tGk-ngGtnpjjn11%3DoQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP8axnBOi0R_c%3DcvMYrmpQK-z2%3D4-ik6tGk-ngGtnpjjn11%3DoQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![hari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hari/32/1582_2.png) [@hari](https://discuss.elastic.co/u/hari)\
**Post date:** [February 23, 2014, 6:24pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/6 "2014-02-23T18:24:57Z")

</div>

I think with current ES version you have 3 options.

- Use the great snapshot and restore feature to snapshot from a DC and  
restore in the other one
- Index in both DC (so two distinct clusters) from a client level
- Use Tribe node feature to search or index on multiple clusters

Reference post  
[https://groups.google.com/forum/#!searchin/elasticsearch/TribeNodes/elasticsearch/MG1RerVSWOk/qZFWvr0HPSwJ](https://groups.google.com/forum/#!searchin/elasticsearch/TribeNodes/elasticsearch/MG1RerVSWOk/qZFWvr0HPSwJ)

On Saturday, February 22, 2014 6:03:13 PM UTC-6, Michael Sick wrote:

> Hi Amit,
> 
> Ivan is correct. You might also check out I believe that you're looking  
> for TribeNodes  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-tribe.html) and  
> see if it fits your needs for cross-dc replication.
> 
> --Mike
> 
> On Sat, Feb 22, 2014 at 1:32 PM, Amit Soni \<[amits...@gmail.com](mailto:amits...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hello Michael - Understand that ES is not built to maintain consistent  
> > cluster state across data centers. what I am wondering is whether there is  
> > a way for Elasticsearch to continue to replicate data onto a different data  
> > center (with some delay of course) so that when the primary center fails,  
> > the fail over data center still has most of the data (may be except for the  
> > last few seconds/minutes/hours).
> > 
> > Overall I am looking for a right way to implement cross data center  
> > deployment of elastic-search!
> > 
> > -Amit.
> > 
> > On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<  
> > [michae...@serenesoftware.com](mailto:michae...@serenesoftware.com) \<javascript:\>\> wrote:
> > 
> > > Dario,
> > > 
> > > I believe that you're looking for TribeNodes  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-tribe.html)
> > > 
> > > ES is not built to consistently cluster across DC's / larger network  
> > > lags.
> > > 
> > > On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi \<[dari...@gmail.com](mailto:dari...@gmail.com)\<javascript:\>
> > > 
> > > > wrote:
> > > 
> > > > Hi,  
> > > > I've the following problem: our application publishes content to an  
> > > > Elasticsearch cluster. We use local data less node for querying  
> > > > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > > > loadbalancer. Now they came with the requirement of having the cluster  
> > > > replicated to another data center too (and in the future maybe another  
> > > > too... ) for resilience.
> > > > 
> > > > At the very beginning we thought of having one large cluster that goes  
> > > > across data centers (crazy). This solution has the following problems:
> > > > 
> > > > - The cluster has the split-brain problem (!)
> > > > - The client data less node will try to do requests across different  
> > > > data centers (is there a solution to this???). I can't find a way to avoid  
> > > > this. We don't want this to happen because of a) latency and b) firewalling  
> > > > issues.
> > > > 
> > > > So we started to think that this solution is not really viable. So we  
> > > > thought of having one cluster per data center, which seems more sensible.  
> > > > But then here we have the problem that we must publish data to all clusters  
> > > > and, if one fails, we have no means of rolling back (unless we try to set  
> > > > up a complicated version based rollback system). I find this very  
> > > > complicated and hard to maintain, although can be somewhat doable.
> > > > 
> > > > My biggest problem is that we have to keep the data centers in the same  
> > > > state at any time, so that if one goes down, we can readily switch to the  
> > > > other.
> > > > 
> > > > Any ideas, or can you recommend some support to help use deal with 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%40googlegroups.com)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%40mail.gmail.com)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [February 25, 2014, 8:05am UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/7 "2014-02-25T08:05:05Z")

</div>

Thanks so much everyone for sharing your thoughts!

-Amit.

On Sun, Feb 23, 2014 at 10:24 AM, Hariharan Vadivelu [hariinfo@gmail.com](mailto:hariinfo@gmail.com)wrote:

> I think with current ES version you have 3 options.
> 
> - Use the great snapshot and restore feature to snapshot from a DC and  
> restore in the other one
> - Index in both DC (so two distinct clusters) from a client level
> - Use Tribe node feature to search or index on multiple clusters
> 
> Reference post
> 
> [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/TribeNodes/elasticsearch/MG1RerVSWOk/qZFWvr0HPSwJ)
> 
> On Saturday, February 22, 2014 6:03:13 PM UTC-6, Michael Sick wrote:
> 
> > Hi Amit,
> > 
> > Ivan is correct. You might also check out I believe that you're looking  
> > for TribeNodes [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/)  
> > elasticsearch/reference/master/modules-tribe.html and see if it fits  
> > your needs for cross-dc replication.
> > 
> > --Mike
> > 
> > On Sat, Feb 22, 2014 at 1:32 PM, Amit Soni [amits...@gmail.com](mailto:amits...@gmail.com) wrote:
> > 
> > > Hello Michael - Understand that ES is not built to maintain consistent  
> > > cluster state across data centers. what I am wondering is whether there is  
> > > a way for Elasticsearch to continue to replicate data onto a different data  
> > > center (with some delay of course) so that when the primary center fails,  
> > > the fail over data center still has most of the data (may be except for the  
> > > last few seconds/minutes/hours).
> > > 
> > > Overall I am looking for a right way to implement cross data center  
> > > deployment of elastic-search!
> > > 
> > > -Amit.
> > > 
> > > On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<michae...@serenesoftware.  
> > > com\> wrote:
> > > 
> > > > Dario,
> > > > 
> > > > I believe that you're looking for TribeNodes [http://www](http://www).  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://elasticsearch.org/guide/en/elasticsearch/reference/)  
> > > > master/modules-tribe.html
> > > > 
> > > > ES is not built to consistently cluster across DC's / larger network  
> > > > lags.
> > > > 
> > > > On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [dari...@gmail.com](mailto:dari...@gmail.com)wrote:
> > > > 
> > > > > Hi,  
> > > > > I've the following problem: our application publishes content to an  
> > > > > Elasticsearch cluster. We use local data less node for querying  
> > > > > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > > > > loadbalancer. Now they came with the requirement of having the cluster  
> > > > > replicated to another data center too (and in the future maybe another  
> > > > > too... ) for resilience.
> > > > > 
> > > > > At the very beginning we thought of having one large cluster that goes  
> > > > > across data centers (crazy). This solution has the following problems:
> > > > > 
> > > > > - The cluster has the split-brain problem (!)
> > > > > - The client data less node will try to do requests across different  
> > > > > data centers (is there a solution to this???). I can't find a way to avoid  
> > > > > this. We don't want this to happen because of a) latency and b) firewalling  
> > > > > issues.
> > > > > 
> > > > > So we started to think that this solution is not really viable. So we  
> > > > > thought of having one cluster per data center, which seems more sensible.  
> > > > > But then here we have the problem that we must publish data to all clusters  
> > > > > and, if one fails, we have no means of rolling back (unless we try to set  
> > > > > up a complicated version based rollback system). I find this very  
> > > > > complicated and hard to maintain, although can be somewhat doable.
> > > > > 
> > > > > My biggest problem is that we have to keep the data centers in the  
> > > > > same state at any time, so that if one goes down, we can readily switch to  
> > > > > the other.
> > > > > 
> > > > > Any ideas, or can you recommend some support to help use deal with  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > 
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%  
> > > > > [40googlegroups.com](http://40googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%  
> > > > 2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%[40mail.gmail.com](http://40mail.gmail.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-uosp9SWCCeZmkRdQHsSJTSndA%  
> > > [40mail.gmail.com](http://40mail.gmail.com).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com)  
> > .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAAOGaQ%2BvfY33L1%3DieizyPLT9Q22FXXauV-%2BHjxexDYNVXMONTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BvfY33L1%3DieizyPLT9Q22FXXauV-%2BHjxexDYNVXMONTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Dario\_Rossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dario_rossi/32/1672_2.png) [@Dario\_Rossi](https://discuss.elastic.co/u/Dario_Rossi)\
**Post date:** [February 25, 2014, 10:04am UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/8 "2014-02-25T10:04:05Z")

</div>

I will try the tribe node feature, even if I don't understand it  
completely... but I think it deserves some experimentation

Il giorno martedì 25 febbraio 2014 08:05:05 UTC, amit.soni ha scritto:

> Thanks so much everyone for sharing your thoughts!
> 
> -Amit.
> 
> On Sun, Feb 23, 2014 at 10:24 AM, Hariharan Vadivelu \<[hari...@gmail.com](mailto:hari...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > I think with current ES version you have 3 options.
> > 
> > - Use the great snapshot and restore feature to snapshot from a DC and  
> > restore in the other one
> > - Index in both DC (so two distinct clusters) from a client level
> > - Use Tribe node feature to search or index on multiple clusters
> > 
> > Reference post
> > 
> > [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/TribeNodes/elasticsearch/MG1RerVSWOk/qZFWvr0HPSwJ)
> > 
> > On Saturday, February 22, 2014 6:03:13 PM UTC-6, Michael Sick wrote:
> > 
> > > Hi Amit,
> > > 
> > > Ivan is correct. You might also check out I believe that you're looking  
> > > for TribeNodes [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/)  
> > > elasticsearch/reference/master/modules-tribe.html and see if it fits  
> > > your needs for cross-dc replication.
> > > 
> > > --Mike
> > > 
> > > On Sat, Feb 22, 2014 at 1:32 PM, Amit Soni [amits...@gmail.com](mailto:amits...@gmail.com) wrote:
> > > 
> > > > Hello Michael - Understand that ES is not built to maintain consistent  
> > > > cluster state across data centers. what I am wondering is whether there is  
> > > > a way for Elasticsearch to continue to replicate data onto a different data  
> > > > center (with some delay of course) so that when the primary center fails,  
> > > > the fail over data center still has most of the data (may be except for the  
> > > > last few seconds/minutes/hours).
> > > > 
> > > > Overall I am looking for a right way to implement cross data center  
> > > > deployment of elastic-search!
> > > > 
> > > > -Amit.
> > > > 
> > > > On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<  
> > > > [michae...@serenesoftware.com](mailto:michae...@serenesoftware.com)\> wrote:
> > > > 
> > > > > Dario,
> > > > > 
> > > > > I believe that you're looking for TribeNodes [http://www](http://www).  
> > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://elasticsearch.org/guide/en/elasticsearch/reference/)  
> > > > > master/modules-tribe.html
> > > > > 
> > > > > ES is not built to consistently cluster across DC's / larger network  
> > > > > lags.
> > > > > 
> > > > > On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [dari...@gmail.com](mailto:dari...@gmail.com)wrote:
> > > > > 
> > > > > > Hi,  
> > > > > > I've the following problem: our application publishes content to an  
> > > > > > Elasticsearch cluster. We use local data less node for querying  
> > > > > > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > > > > > loadbalancer. Now they came with the requirement of having the cluster  
> > > > > > replicated to another data center too (and in the future maybe another  
> > > > > > too... ) for resilience.
> > > > > > 
> > > > > > At the very beginning we thought of having one large cluster that  
> > > > > > goes across data centers (crazy). This solution has the following problems:
> > > > > > 
> > > > > > - The cluster has the split-brain problem (!)
> > > > > > - The client data less node will try to do requests across different  
> > > > > > data centers (is there a solution to this???). I can't find a way to avoid  
> > > > > > this. We don't want this to happen because of a) latency and b) firewalling  
> > > > > > issues.
> > > > > > 
> > > > > > So we started to think that this solution is not really viable. So we  
> > > > > > thought of having one cluster per data center, which seems more sensible.  
> > > > > > But then here we have the problem that we must publish data to all clusters  
> > > > > > and, if one fails, we have no means of rolling back (unless we try to set  
> > > > > > up a complicated version based rollback system). I find this very  
> > > > > > complicated and hard to maintain, although can be somewhat doable.
> > > > > > 
> > > > > > My biggest problem is that we have to keep the data centers in the  
> > > > > > same state at any time, so that if one goes down, we can readily switch to  
> > > > > > the other.
> > > > > > 
> > > > > > Any ideas, or can you recommend some support to help use deal with  
> > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > > 
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/5424a274-3f6b-4c12-9fe6-621e04f87a8d%  
> > > > > > [40googlegroups.com](http://40googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/CAP8axnDW4GCDnnzwA%2BcyR%  
> > > > > 2BN4g-26VV4CZ-ZW6SDGgxFL75qy%2Bw%[40mail.gmail.com](http://40mail.gmail.com).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-  
> > > > uosp9SWCCeZmkRdQHsSJTSndA%[40mail.gmail.com](http://40mail.gmail.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/ab2c578c-2ccd-4ce6-b095-450f84013fe6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ab2c578c-2ccd-4ce6-b095-450f84013fe6%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Dario\_Rossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dario_rossi/32/1672_2.png) [@Dario\_Rossi](https://discuss.elastic.co/u/Dario_Rossi)\
**Post date:** [February 25, 2014, 1:06pm UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/9 "2014-02-25T13:06:14Z")

</div>

From the docs it is not clear if having two clusters with the same indexes,  
a indexing operation will have effect on both...

There is a line that leaves me bit doubtful:

However, there are a few exceptions:

- The merged view cannot handle indices with the same name in multiple  
clusters. It will pick one of them and discard the other.

Il giorno martedì 25 febbraio 2014 10:04:05 UTC, Dario Rossi ha scritto:

> I will try the tribe node feature, even if I don't understand it  
> completely... but I think it deserves some experimentation
> 
> Il giorno martedì 25 febbraio 2014 08:05:05 UTC, amit.soni ha scritto:
> 
> > Thanks so much everyone for sharing your thoughts!
> > 
> > -Amit.
> > 
> > On Sun, Feb 23, 2014 at 10:24 AM, Hariharan Vadivelu [hari...@gmail.com](mailto:hari...@gmail.com)wrote:
> > 
> > > I think with current ES version you have 3 options.
> > > 
> > > - Use the great snapshot and restore feature to snapshot from a DC and  
> > > restore in the other one
> > > - Index in both DC (so two distinct clusters) from a client level
> > > - Use Tribe node feature to search or index on multiple clusters
> > > 
> > > Reference post
> > > 
> > > [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/TribeNodes/elasticsearch/MG1RerVSWOk/qZFWvr0HPSwJ)
> > > 
> > > On Saturday, February 22, 2014 6:03:13 PM UTC-6, Michael Sick wrote:
> > > 
> > > > Hi Amit,
> > > > 
> > > > Ivan is correct. You might also check out I believe that you're  
> > > > looking for TribeNodes [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/)  
> > > > elasticsearch/reference/master/modules-tribe.html and see if it fits  
> > > > your needs for cross-dc replication.
> > > > 
> > > > --Mike
> > > > 
> > > > On Sat, Feb 22, 2014 at 1:32 PM, Amit Soni [amits...@gmail.com](mailto:amits...@gmail.com) wrote:
> > > > 
> > > > > Hello Michael - Understand that ES is not built to maintain consistent  
> > > > > cluster state across data centers. what I am wondering is whether there is  
> > > > > a way for Elasticsearch to continue to replicate data onto a different data  
> > > > > center (with some delay of course) so that when the primary center fails,  
> > > > > the fail over data center still has most of the data (may be except for the  
> > > > > last few seconds/minutes/hours).
> > > > > 
> > > > > Overall I am looking for a right way to implement cross data center  
> > > > > deployment of elastic-search!
> > > > > 
> > > > > -Amit.
> > > > > 
> > > > > On Fri, Feb 21, 2014 at 9:37 AM, Michael Sick \<  
> > > > > [michae...@serenesoftware.com](mailto:michae...@serenesoftware.com)\> wrote:
> > > > > 
> > > > > > Dario,
> > > > > > 
> > > > > > I believe that you're looking for TribeNodes [http://www](http://www).  
> > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://elasticsearch.org/guide/en/elasticsearch/reference/)  
> > > > > > master/modules-tribe.html
> > > > > > 
> > > > > > ES is not built to consistently cluster across DC's / larger network  
> > > > > > lags.
> > > > > > 
> > > > > > On Fri, Feb 21, 2014 at 11:24 AM, Dario Rossi [dari...@gmail.com](mailto:dari...@gmail.com)wrote:
> > > > > > 
> > > > > > > Hi,  
> > > > > > > I've the following problem: our application publishes content to an  
> > > > > > > Elasticsearch cluster. We use local data less node for querying  
> > > > > > > elasticsearch then, so we don't use HTTP REST and the local nodes are the  
> > > > > > > loadbalancer. Now they came with the requirement of having the cluster  
> > > > > > > replicated to another data center too (and in the future maybe another  
> > > > > > > too... ) for resilience.
> > > > > > > 
> > > > > > > At the very beginning we thought of having one large cluster that  
> > > > > > > goes across data centers (crazy). This solution has the following problems:
> > > > > > > 
> > > > > > > - The cluster has the split-brain problem (!)
> > > > > > > - The client data less node will try to do requests across different  
> > > > > > > data centers (is there a solution to this???). I can't find a way to avoid  
> > > > > > > this. We don't want this to happen because of a) latency and b) firewalling  
> > > > > > > issues.
> > > > > > > 
> > > > > > > So we started to think that this solution is not really viable. So  
> > > > > > > we thought of having one cluster per data center, which seems more  
> > > > > > > sensible. But then here we have the problem that we must publish data to  
> > > > > > > all clusters and, if one fails, we have no means of rolling back (unless we  
> > > > > > > try to set up a complicated version based rollback system). I find this  
> > > > > > > very complicated and hard to maintain, although can be somewhat doable.
> > > > > > > 
> > > > > > > My biggest problem is that we have to keep the data centers in the  
> > > > > > > same state at any time, so that if one goes down, we can readily switch to  
> > > > > > > the other.
> > > > > > > 
> > > > > > > Any ideas, or can you recommend some support to help use deal with  
> > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > > > 
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/5424a274-](https://groups.google.com/d/msgid/elasticsearch/5424a274-)  
> > > > > > > 3f6b-4c12-9fe6-621e04f87a8d%[40googlegroups.com](http://40googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/](https://groups.google.com/d/msgid/elasticsearch/)  
> > > > > > CAP8axnDW4GCDnnzwA%2BcyR%2BN4g-26VV4CZ-ZW6SDGgxFL75qy%  
> > > > > > 2Bw%[40mail.gmail.com](http://40mail.gmail.com).
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/CAAOGaQKLUGepyKyR4oDNq1B7-  
> > > > > uosp9SWCCeZmkRdQHsSJTSndA%[40mail.gmail.com](http://40mail.gmail.com).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9928e3f4-f7a4-43c5-8c4b-c42ece1d3234%40googlegroups.com)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/58485177-4a2a-4f09-b09f-4780add644f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58485177-4a2a-4f09-b09f-4780add644f7%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:47am UTC](https://discuss.elastic.co/t/problem-with-keeping-in-sync-elasticsearch-across-two-data-centers/15955/10 "2017-07-06T01:47:27Z")

</div>


