# Is it fine to have a 2 node cluster for Elastic Search?

**URL:** https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585
**Category:** Elasticsearch
**Created:** [August 18, 2015, 12:47pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585 "2015-08-18T12:47:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Zeal\_Vora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeal_vora/32/3946_2.png) [@Zeal\_Vora](https://discuss.elastic.co/u/Zeal_Vora)
#### Post date: [August 18, 2015, 12:47pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/1 "2015-08-18T12:47:45Z")

</div>

Hi

One of the person said that he uses 2 node cluster for Elastic Search and he has set both the nodes to master and it does the job. Is this a feasible way of doing it ?

I've seen in Red Hat Cluster that they have 2 node cluster which works fine.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 18, 2015, 1:26pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/2 "2015-08-18T13:26:42Z")

</div>

Having two master-eligible nodes _works_, but you might end up in a split brain situation which can be quite tedious to recover from. An odd number of master-eligible nodes is preferable.

---

<div class="post-metadata">

### Author: ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)
#### Post date: [August 18, 2015, 2:54pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/3 "2015-08-18T14:54:08Z")

</div>

Agreed. It technically works, but is not recommended at all. If I were standing up a small cluster, I would either have a single node, or jump immediately to three nodes so that you can have a useful quorum size.

A cluster of two nodes is just asking for problems in my opinion.

---

<div class="post-metadata">

### Author: ![mosiddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mosiddi/32/577_2.png) [@mosiddi](https://discuss.elastic.co/u/mosiddi)
#### Post date: [August 18, 2015, 4:53pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/4 "2015-08-18T16:53:57Z")

</div>

+1. If you really want it to be 2-nodes, make one of the nodes only master (though u will have single point of failure) and both nodes as data nodes. 😄

---

<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: [August 18, 2015, 10:25pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/5 "2015-08-18T22:25:48Z")

</div>

Just go with 3 nodes and be safe 🙂

---

<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 5, 2017, 11:55pm UTC](https://discuss.elastic.co/t/is-it-fine-to-have-a-2-node-cluster-for-elastic-search/27585/6 "2017-07-05T23:55:10Z")

</div>


