# Set minimum\_master\_nodes

**URL:** <https://discuss.elastic.co/t/set-minimum-master-nodes/152187>\
**Category:** Elasticsearch\
**Created:** [October 12, 2018, 8:01am UTC](https://discuss.elastic.co/t/set-minimum-master-nodes/152187 "2018-10-12T08:01:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bert\_vervaele](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bert_vervaele/32/36142_2.png) [@bert\_vervaele](https://discuss.elastic.co/u/bert_vervaele)\
**Post date:** [October 12, 2018, 8:01am UTC](https://discuss.elastic.co/t/set-minimum-master-nodes/152187/1 "2018-10-12T08:01:37Z")

</div>

Hey,

I was wondering if I had to set the "discovery.zen.minimum\_master\_nodes" setting in the yml of all my nodes in the cluster or only the master eligible ones?

Kind regards Bert

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [October 12, 2018, 9:43am UTC](https://discuss.elastic.co/t/set-minimum-master-nodes/152187/2 "2018-10-12T09:43:32Z")

</div>

I'm pretty sure you only need to set this in the master eligible nodes elasticsearch.yml files because the data nodes doesn't need to know this setting.

But you can also set this dynamically in a cluster, using a curl command like this:

```
curl -X PUT "http://localhost:9250/_cluster/settings" -H "Content-Type: application/json" -d '{
    "transient" : {
        "discovery.zen.minimum_master_nodes" : 2
    }
}'

```

This lets you add more master nodes and update the minimum\_master\_nodes setting without having to restart the old master eligible nodes.

---

<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:** [November 9, 2018, 9:43am UTC](https://discuss.elastic.co/t/set-minimum-master-nodes/152187/3 "2018-11-09T09:43:32Z")

</div>

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