# What is best approach for elastic cluster with two machines

**URL:** <https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467>\
**Category:** Elasticsearch\
**Created:** [May 28, 2015, 12:45pm UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467 "2015-05-28T12:45:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilb](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sunilb](https://discuss.elastic.co/u/sunilb)\
**Post date:** [May 28, 2015, 12:45pm UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/1 "2015-05-28T12:45:59Z")

</div>

Hi Guys, I want to setup elastic cluster with failover management. I have two machines available. Please guide me about Master and Slave nodes optimum strategy, so that I should not face any downtime issue due to failure of a node or machine or network (inter nodes). I have little heard about Split Brain issue that I also want to avoid.

---

<div class="post-metadata">

**Author:** ![Camilo\_Sierra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/camilo_sierra/32/14397_2.png) [@Camilo\_Sierra](https://discuss.elastic.co/u/Camilo_Sierra)\
**Post date:** [May 28, 2015, 12:51pm UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/2 "2015-05-28T12:51:10Z")

</div>

how big are your machines (ram/cpu/ssd ?) ? what is your user case ? 50/50 indexation/search or more indexation than search querys ? your querys will use heavy aggregations/sort ? (i have 38 nodes a never had split brain issue)

---

<div class="post-metadata">

**Author:** ![sunilb](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sunilb](https://discuss.elastic.co/u/sunilb)\
**Post date:** [May 28, 2015, 12:56pm UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/3 "2015-05-28T12:56:10Z")

</div>

Thanks for coming up on this so fast.

These are 2 linux machines with 4 core processor, 8gb RAM and SSD drive 500 GB.  
User Case is average like on peak it could be concurrent 1K-2K users load at max. But apart from query there would be data updates (indexation) in between.  
And also using aggregations in queries.

Please also mention, is multiple node on same machine is good approach (if I have to, and what should be strategy for master/salve)

---

<div class="post-metadata">

**Author:** ![Camilo\_Sierra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/camilo_sierra/32/14397_2.png) [@Camilo\_Sierra](https://discuss.elastic.co/u/Camilo_Sierra)\
**Post date:** [May 28, 2015, 1:06pm UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/4 "2015-05-28T13:06:48Z")

</div>

yeah can be a good approach but when your servers are bigger! with only 8gb or RAM you need tu put 4gb to the heap and that is ok, but if you put less memory it can be a litte dangerous if you have multiple index and too many indexations and search in the same moment, you need to test multiple options but you can beginning with 2 nodes one for each serveur. after that if (marvel/bigdesk) you see that your heap never go up 2gb you can split your servers.

---

<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:** [May 29, 2015, 2:34am UTC](https://discuss.elastic.co/t/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/5 "2015-05-29T02:34:24Z")

</div>

If you want HA then you really want 3 nodes, it helps prevent split brain.

---

<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/what-is-best-approach-for-elastic-cluster-with-two-machines/1467/6 "2017-07-06T00:11:03Z")

</div>


