# ES cluster

**URL:** <https://discuss.elastic.co/t/es-cluster/103395>\
**Category:** Elasticsearch\
**Created:** [October 10, 2017, 2:45pm UTC](https://discuss.elastic.co/t/es-cluster/103395 "2017-10-10T14:45:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trelo](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@trelo](https://discuss.elastic.co/u/trelo)\
**Post date:** [October 10, 2017, 2:45pm UTC](https://discuss.elastic.co/t/es-cluster/103395/1 "2017-10-10T14:45:48Z")

</div>

Hi, experts! I'm newbie in ES and I need your advice.  
I've an app which is hosting in two different sites(A and B). In site A I've a single master ES node which is handling all requests from both A and B site(multiple backends in every site), and which is "Single Point Of Failure". What is the best way to add Failover for ES to this app and avoid "brain split" if something wrong with network between A and B site? Just give me direction.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 10, 2017, 3:06pm UTC](https://discuss.elastic.co/t/es-cluster/103395/2 "2017-10-10T15:06:24Z")

</div>

It depends on your case.

If you need to be able to index in both sites and replicate on the 2 sites immediately.

If not, let say you index in site A. You can run a snapshot every x minutes from site A and restore in site B.  
If you need more "real time" search, instead of indexing in elasticsearch site A, you can send the operation to something like Kafka which you set to be distributed in site A and B, then read with Logstash for example and index in both sites the same data.

In the future, we will have probably something like cross data center replication but it's not yet there. With that you'll probably be able to do the later automatically...

---

<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:** [November 7, 2017, 3:06pm UTC](https://discuss.elastic.co/t/es-cluster/103395/3 "2017-11-07T15:06:31Z")

</div>

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