# How to get discovery.zen.minimum\_master\_nodes setting

**URL:** <https://discuss.elastic.co/t/how-to-get-discovery-zen-minimum-master-nodes-setting/40617>\
**Category:** Elasticsearch\
**Created:** [February 1, 2016, 8:38am UTC](https://discuss.elastic.co/t/how-to-get-discovery-zen-minimum-master-nodes-setting/40617 "2016-02-01T08:38:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrv](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@dtrv](https://discuss.elastic.co/u/dtrv)\
**Post date:** [February 1, 2016, 8:38am UTC](https://discuss.elastic.co/t/how-to-get-discovery-zen-minimum-master-nodes-setting/40617/1 "2016-02-01T08:38:55Z")

</div>

Hi.

I know one can set the discovery.zen.minimum\_master\_node within the config file and by using the cluster update settings API.  
But how to get the current setting?  
What if one start a node with minimum\_master\_node = 1 and another node with minimum\_master\_node = 2?

Thanks.

---

<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:** [February 2, 2016, 10:26pm UTC](https://discuss.elastic.co/t/how-to-get-discovery-zen-minimum-master-nodes-setting/40617/2 "2016-02-02T22:26:23Z")

</div>

`GET /_cluster/settings` if you have set it via the API.

> [@dtrv](#):
>
> What if one start a node with minimum\_master\_node = 1 and another node with minimum\_master\_node = 2?

It'll take the setting from the current master node.

---

<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:** [July 5, 2017, 11:19pm UTC](https://discuss.elastic.co/t/how-to-get-discovery-zen-minimum-master-nodes-setting/40617/3 "2017-07-05T23:19:25Z")

</div>


