# Discovery.zen.minimum\_master\_nodes is set to -1 by default

**URL:** <https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-is-set-to-1-by-default/232950>\
**Category:** Elasticsearch\
**Created:** [May 16, 2020, 8:42pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-is-set-to-1-by-default/232950 "2020-05-16T20:42:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faiz\_Ahmed\_Mushtak\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faiz_ahmed_mushtak_h/32/47387_2.png) [@Faiz\_Ahmed\_Mushtak\_H](https://discuss.elastic.co/u/Faiz_Ahmed_Mushtak_H)\
**Post date:** [May 16, 2020, 8:42pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-is-set-to-1-by-default/232950/1 "2020-05-16T20:42:41Z")

</div>

We missed a very important configuration in our `elasticsearch.yml`

`discovery.zen.minimum_master_nodes`

and the default for it seems to be `-1` according to `_cluster/settings`

What would be the right steps to update our yml file with the above setting. should a rolling restart be sufficient. yesterday when we did a rolling restart (for some other purpose and not for updating this setting) and restarted the master nodes we started getting 503 for writes (i couldn't check the log actually to confirm what exactly was the issue)

What does a value of `-1` signify?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 16, 2020, 10:12pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-is-set-to-1-by-default/232950/2 "2020-05-16T22:12:39Z")

</div>

`-1` roughly means the same as `1`. But I think you're [using version 7.2](https://discuss.elastic.co/t/index-restoration-from-snapshot-is-taking-a-lot-of-time-in-7-2-0-es/227184), in which case this setting is ignored and should not be set.

---

<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:** [June 13, 2020, 10:12pm UTC](https://discuss.elastic.co/t/discovery-zen-minimum-master-nodes-is-set-to-1-by-default/232950/3 "2020-06-13T22:12:44Z")

</div>

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