# Multinode cluster for elastic search

**URL:** https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187
**Category:** Elasticsearch
**Created:** [December 27, 2019, 12:23pm UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187 "2019-12-27T12:23:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![abhishek1989](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@abhishek1989](https://discuss.elastic.co/u/abhishek1989)
#### Post date: [December 27, 2019, 12:23pm UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/1 "2019-12-27T12:23:05Z")

</div>

Hi ,  
I have java application and i am using elastic search as data storage so previously i had HA configuration like one master node and two data nodes so in this case its like single point failure if master node is down so could you please tell me what will be best approach for HA if i use 3 or 4 elastic search , how can i configure master and data??

Could you please suggest best approach for HA.

---

<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: [December 27, 2019, 12:44pm UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/2 "2019-12-27T12:44:04Z")

</div>

Welcome.

Just keep the default values when you have a small cluster (here 3 nodes).  
All nodes will be data and master. Which is fine.

---

<div class="post-metadata">

### Author: ![abhishek1989](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@abhishek1989](https://discuss.elastic.co/u/abhishek1989)
#### Post date: [December 27, 2019, 1:05pm UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/3 "2019-12-27T13:05:54Z")

</div>

Thanks ....  
So you are saying all nodes should be master/data .  
node.master=true  
node.data=true in all three servers  
If i use two master and one data in that case is it fine ????

---

<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: [December 27, 2019, 1:33pm UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/4 "2019-12-27T13:33:32Z")

</div>

No it's not fine if you have only one data node.

---

<div class="post-metadata">

### Author: ![abhishek1989](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@abhishek1989](https://discuss.elastic.co/u/abhishek1989)
#### Post date: [December 30, 2019, 6:03am UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/5 "2019-12-30T06:03:39Z")

</div>

Hey Thanks,

I will configure as per your previous comments and lets see . If i face any issue i will update

---

<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 27, 2020, 6:03am UTC](https://discuss.elastic.co/t/multinode-cluster-for-elastic-search/213187/6 "2020-01-27T06:03:46Z")

</div>

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