# 1 cluster on 2 datacenters?

**URL:** <https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931>\
**Category:** Elasticsearch\
**Created:** [December 13, 2016, 7:47pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931 "2016-12-13T19:47:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonathanAaron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathanaaron/32/24405_2.png) [@JonathanAaron](https://discuss.elastic.co/u/JonathanAaron)\
**Post date:** [December 13, 2016, 7:47pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931/1 "2016-12-13T19:47:47Z")

</div>

I have 2 datacenters where I'm trying to distribute 3 master nodes. 2 in one center and 1 in another? Would this be considered 2 clusters? And if so should I have 3 nodes per datacenter to prevent split brain?

Thanks!

---

<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 13, 2016, 10:40pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931/2 "2016-12-13T22:40:54Z")

</div>

We don't recommend this sort of deployment because it's difficult to manage.  
If you get network timeouts then things start rebalancing, plus you need to figure out which datacentre you want to basically consider unavailable when you have a network split.

---

<div class="post-metadata">

**Author:** ![ChitraP](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@ChitraP](https://discuss.elastic.co/u/ChitraP)\
**Post date:** [December 14, 2016, 6:00pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931/3 "2016-12-14T18:00:01Z")

</div>

So, having 2 datacenters but with there own 3 master nodes, 2 nodes with 4 shards and one client node on each datacenter cluster be a better option with respect to network management? Considering the primary shards and replicas shards will not be on the same datacenter.

---

<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 14, 2016, 8:59pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931/4 "2016-12-14T20:59:23Z")

</div>

Having two separate clusters is best.

---

<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:** [January 11, 2017, 8:59pm UTC](https://discuss.elastic.co/t/1-cluster-on-2-datacenters/68931/5 "2017-01-11T20:59:28Z")

</div>

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