# Three node cluster on production

**URL:** <https://discuss.elastic.co/t/three-node-cluster-on-production/52822>\
**Category:** Elasticsearch\
**Created:** [June 15, 2016, 7:34am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822 "2016-06-15T07:34:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohilelasticsearch](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sohilelasticsearch](https://discuss.elastic.co/u/sohilelasticsearch)\
**Post date:** [June 15, 2016, 7:34am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/1 "2016-06-15T07:34:21Z")

</div>

Hi ,

Can anyone help me in setting three node cluster on production?  
Also which setting I need to add/edit on all three nodes.

Thanks,  
Sohil

---

<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:** [June 15, 2016, 8:13am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/2 "2016-06-15T08:13:11Z")

</div>

What is your problem?

---

<div class="post-metadata">

**Author:** ![sohilelasticsearch](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sohilelasticsearch](https://discuss.elastic.co/u/sohilelasticsearch)\
**Post date:** [June 15, 2016, 8:59am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/3 "2016-06-15T08:59:50Z")

</div>

1. I want to know how many nodes should be Master only node and how many nodes should be data node and Master + data node.
2. Do we need to add **discovery.zen.ping.unicast.hosts: ["host1", "host2:port"]** setting on all three nodes?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 15, 2016, 9:12am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/4 "2016-06-15T09:12:04Z")

</div>

> [@sohilelasticsearch](#):
>
> I want to know how many nodes should be Master only node and how many nodes should be data node and Master + data node.

With three nodes in the cluster, I would recommend making them all hold data and be master eligible. Remember to set `minimum_master_nodes` to 2 to avoid split brain scenarios.

> [@sohilelasticsearch](#):
>
> Do we need to add discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] setting on all three nodes?

All nodes should have the IP addresses of all nodes in the unicast hosts list.

---

<div class="post-metadata">

**Author:** ![sohilelasticsearch](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sohilelasticsearch](https://discuss.elastic.co/u/sohilelasticsearch)\
**Post date:** [June 15, 2016, 9:13am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/5 "2016-06-15T09:13:37Z")

</div>

Thanks for your quick help.

---

<div class="post-metadata">

**Author:** ![sohilelasticsearch](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sohilelasticsearch](https://discuss.elastic.co/u/sohilelasticsearch)\
**Post date:** [June 15, 2016, 9:25am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/6 "2016-06-15T09:25:53Z")

</div>

What about **#index.number\_of\_shards: 1** and **#index.number\_of\_replicas: 0** in three nodes cluster.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 15, 2016, 9:31am UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/7 "2016-06-15T09:31:20Z")

</div>

If you want the cluster to be highly available, you will need at least one replica configured. The ideal number of shards will depend on your data, the specification of the cluster and the number of indices you expect to have. 3 might be a good starting option in order to distribute data across the nodes reasonably evenly.

---

<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, 10:43pm UTC](https://discuss.elastic.co/t/three-node-cluster-on-production/52822/8 "2017-07-05T22:43:44Z")

</div>


