# Node types and cluster settings in ES 5.x

**URL:** <https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914>\
**Category:** Elasticsearch\
**Created:** [August 22, 2017, 1:13pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914 "2017-08-22T13:13:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduard\_Kubanda](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@Eduard\_Kubanda](https://discuss.elastic.co/u/Eduard_Kubanda)\
**Post date:** [August 22, 2017, 1:13pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914/1 "2017-08-22T13:13:53Z")

</div>

Hi there,  
I am a bit confused about cluster nodes settings. There is a lot of topics and articles about nodes / shards / replicas settings, but I often find inaccuracies between current (or my) version - articles & topics - documentation.

My version of ES is 5.4. I guess the settings applied to 5.x versions are equal.

**Master eligible node**  
What are proper settings to create node as master-eligible ?  
Documentation ([https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-node.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-node.html)) says :

> A node that has node.master set to true (default), which makes it eligible to be elected as the master node, which controls the cluster.

but further in text the documentation says:

> To create a standalone master-eligible node, set:  
> node.master: true  
> node.data: false  
> node.ingest: false

This topic : [https://discuss.elastic.co/t/how-to-create-a-master-eligible-node-in-elasticsearch-5/64669/5](https://discuss.elastic.co/t/how-to-create-a-master-eligible-node-in-elasticsearch-5/64669/5)  
says that node.master setting is all that matters.

**Cluster settings**  
There are articles (and documentation) which suggest 3 dedicated master-eligible nodes to be created in cluster as basic configuration.  
I want to configure cluster for large number of docs (10 000 000 to 20 000 000), which will be updated and searched. What configuration do you suggest me ?

- 3 node.master nodes + 3 node.data nodes (how many data nodes do I need in this scenario ?)
- 3 node.master, node.data nodes
- 1 node.master node + 2 node.master, node.data nodes

I understand that configuration is individual to requirements and I am not even talking about shards and replicas, but my question is general - what should master eligible node configuration look like for large number of docs to be processed = joined with data nodes, or separated, or ... ?  
Thank you.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 22, 2017, 3:06pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914/2 "2017-08-22T15:06:32Z")

</div>

The difference is between creating a node that is master-eligible (`node.master=true`) and creating a node that is _only_ master-eligible (`node.master=true`, `node.data=false`, and `node.ingest=false`). Does that help clarify the situation?

---

<div class="post-metadata">

**Author:** ![Eduard\_Kubanda](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@Eduard\_Kubanda](https://discuss.elastic.co/u/Eduard_Kubanda)\
**Post date:** [August 23, 2017, 12:17pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914/3 "2017-08-23T12:17:33Z")

</div>

OK, so difference between master-eligible and _only master-eligible_ is that master-eligible is able to hold data. Documentation says:

> While master nodes can also behave as coordinating nodes and route search and indexing requests from clients to data nodes, it is better not to use dedicated master nodes for this purpose. It is important for the stability of the cluster that master-eligible nodes do as little work as possible.

So, let's consider cluster structure that consists of 3 master-eligible nodes and discovery.zen.minimum\_master\_nodes option set to value of 2 (this structure is recommended as basic configuration in many articles and topics).  
**Does that mean these master nodes should be master-eligible or only master-eligible ?**  
I want to clarify configuration of master nodes and their usage for situation I described above (large data). I guess it is better to have 3 only master-eligible nodes (untouched, just for stability of cluster) and a number of data nodes (how many ?). Am I right ?  
Another configuration could be 3 only master-eligible nodes, a number of data nodes and a number of coordination nodes. What is your opinion ?  
Thank you.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 23, 2017, 1:22pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914/4 "2017-08-23T13:22:08Z")

</div>

> [@Eduard\_Kubanda](#):
>
> Does that mean these master nodes should be master-eligible or only master-eligible ?

For the master-eligible nodes to do as little work as possible you need two things:

- set the master-eligible nodes to be standalone master-eligible nodes (so _only_ master-eligible)
- do not send indexing/search requests to the master nodes

> [@Eduard\_Kubanda](#):
>
> I guess it is better to have 3 only master-eligible nodes (untouched, just for stability of cluster) and a number of data nodes (how many ?). Am I right ?

Correct. For your how many nodes question, that is a difficult question to answer. It depends entirely on your workload (not just number of docs, but how often you're updating these docs, how many simultaneous search requests you expect to see, etc.). These are not easy questions to answer and they require lifting on your part. Elasticsearch is designed to scale horizontally easily, so you can start on the low side and increase if needed as you learn more about your workload and its interaction with Elasticsearch.

> [@Eduard\_Kubanda](#):
>
> Another configuration could be 3 only master-eligible nodes, a number of data nodes and a number of coordination nodes. What is your opinion ?

Coordinating nodes may or may not be necessary, again it entirely depends on your workload. It's helpful for when the data nodes are under a lot of load from sustained search and indexing requests, the coordinating nodes can take some of the query load off of the data nodes (the data nodes still execute the shard-level searches, but the coordinating node does the work of managing the client interaction and accumulating the shard-level results from the data nodes). My recommendation is this: start without them, see how your cluster performs, if it acts like a cluster that is under sustained load that you can triage as being from search and indexing requests, then add a few coordinating nodes and see if it helps.

---

<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:** [September 20, 2017, 1:22pm UTC](https://discuss.elastic.co/t/node-types-and-cluster-settings-in-es-5-x/97914/5 "2017-09-20T13:22:09Z")

</div>

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