# Elasticsearch: 2-node cluster with failover

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-node-cluster-with-failover/23702>\
**Category:** Elasticsearch\
**Created:** [May 28, 2015, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-2-node-cluster-with-failover/23702 "2015-05-28T08:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakhar\_Mishra1](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@Prakhar\_Mishra1](https://discuss.elastic.co/u/Prakhar_Mishra1)\
**Post date:** [May 28, 2015, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-2-node-cluster-with-failover/23702/1 "2015-05-28T08:31:10Z")

</div>

I am using **Elasticsearch 1.5.2** and trying to setup a 2-node cluster. These 2 nodes are primarily for failover strategy (if any one node goes down, the other one is still there to handle requests), I don't need to divide primary shards or something like that, (total data is no more than 500mb on hard-disk).

Everything goes well, until **Split Brains** thing kicks in. Now, since I don't have much data, I don't feel any requirement of 3 nodes. And I want to have failover mechanism too. Which means, _discovery.zen.minimum\_master\_nodes_ cannot be more than _1_.

Now, I have two questions:

1. Is there any configuration possible, which could overcome **2 master nodes** or **Split Brains** problem?
2. If not, what all other options do I have to make it work? Like, keeping both in different clusters (one online, other one offline) and updating offline with online, time to time, for the time when online cluster goes down. Or, do I have to go for 3-node cluster?

I am going on production environment. Please help.

Env Info: Two machines (VMWare driven), having 4 cores, 8gb RAM and CentOS. We are firing 7-8 queries (1 _\_search_ and other _\_count_) per search. Indexing op won't be very frequent (until we sync existing indices from DB through _\_bulk_ API), but searching is going to be quite frequent.

---

<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:11am UTC](https://discuss.elastic.co/t/elasticsearch-2-node-cluster-with-failover/23702/2 "2017-07-06T00:11:24Z")

</div>


