# ElasticSearch master and slaves

**URL:** <https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735>\
**Category:** Elasticsearch\
**Created:** [November 17, 2020, 4:26pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735 "2020-11-17T16:26:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dzyann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyann/32/48792_2.png) [@Dzyann](https://discuss.elastic.co/u/Dzyann)\
**Post date:** [November 17, 2020, 4:26pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/1 "2020-11-17T16:26:20Z")

</div>

I don't usually work much with Elastic, I have been reading about Elastic Configuration. It is my understanding that Elastic is designed to run clustered, where several nodes, at least 3, should be master. And there are no real "slaves" it is handled by Elastic.

In my current team we had some issues with the servers not being able to handle the load, and when we were checking the configuration we had 1 master and 2 data-nodes. Btw we have 4 machines for elastic, we have logstash in its own machine.  
We discussed this with the Elastic Team and they said that was the correct way to set it up. But everything I have read says the opposite. There should be 3 master nodes. I think the 2 data nodes is ok.

I am in doubt whether I am misunderstanding what I read, or is it that the person in charge of Elastic is used to other kind of Search Engines and has misconceptions.

---

<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:** [November 17, 2020, 4:27pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/2 "2020-11-17T16:27:59Z")

</div>

The 3 nodes should all be master-eligible but only one will act as master at any point in time.

---

<div class="post-metadata">

**Author:** ![Dzyann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyann/32/48792_2.png) [@Dzyann](https://discuss.elastic.co/u/Dzyann)\
**Post date:** [November 17, 2020, 6:30pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/3 "2020-11-17T18:30:19Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> The 3 nodes should all be master-eligible but only one will act as master at any point in time.

Thanks Christian for your quick answer!  
Would it be too bad if we made the 3 nodes, data nodes? It is my understanding that the master related task we do are low, I am unsure about the shards though.

---

<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:** [November 17, 2020, 6:32pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/4 "2020-11-17T18:32:20Z")

</div>

The default setting is that all node have all roles so that is very common in smaller clusters, so no problem at all.

---

<div class="post-metadata">

**Author:** ![Dzyann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyann/32/48792_2.png) [@Dzyann](https://discuss.elastic.co/u/Dzyann)\
**Post date:** [November 17, 2020, 11:41pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/5 "2020-11-17T23:41:48Z")

</div>

Cool, thanks a lot! Yes i read it is the default, but they changed it all and I wasn't sure.

---

<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:** [November 17, 2020, 11:59pm UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/6 "2020-11-17T23:59:17Z")

</div>

> [@Dzyann](#):
>
> when we were checking the configuration we had 1 master and 2 data-nodes. Btw we have 4 machines for elastic, we have logstash in its own machine.  
> We discussed this with the Elastic Team and they said that was the correct way to set it up. But everything I have read says the opposite. There should be 3 master nodes. I think the 2 data nodes is ok.

That depends if you are referring to the one _active_ master, or if there is indeed only one master node configured out of the 3.

`_cat/nodes?v` should show you what node is the master, and what are master eligible.

---

<div class="post-metadata">

**Author:** ![Dzyann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyann/32/48792_2.png) [@Dzyann](https://discuss.elastic.co/u/Dzyann)\
**Post date:** [November 18, 2020, 12:58am UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/7 "2020-11-18T00:58:13Z")

</div>

It is the one master configured. But thanks a lot!

---

<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:** [December 16, 2020, 12:58am UTC](https://discuss.elastic.co/t/elasticsearch-master-and-slaves/255735/8 "2020-12-16T00:58:18Z")

</div>

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