# Updating "discovery.zen.minimum\_master\_nodes": new value ignored?

**URL:** <https://discuss.elastic.co/t/updating-discovery-zen-minimum-master-nodes-new-value-ignored/12924>\
**Category:** Elasticsearch\
**Created:** [July 24, 2013, 7:19pm UTC](https://discuss.elastic.co/t/updating-discovery-zen-minimum-master-nodes-new-value-ignored/12924 "2013-07-24T19:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nekoc](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@nekoc](https://discuss.elastic.co/u/nekoc)\
**Post date:** [July 24, 2013, 7:19pm UTC](https://discuss.elastic.co/t/updating-discovery-zen-minimum-master-nodes-new-value-ignored/12924/1 "2013-07-24T19:19:34Z")

</div>

Hello. I was expecting changing "discovery.zen.minimum\_master\_nodes" value  
will take effect immediately upon request submission (using  
[http://host:9200/\_cluster/settings](http://host:9200/_cluster/settings) call) but it doesn't seem to work work  
in such a way.

Elasticsearch Version 0.90.2  
Cluster setting:  
4 nodes (all master-eligible)

Steps:

1. Start all nodes with discovery.zen.minimum\_master\_nodes = 3 in  
elasticsearch.yml
2. Execute curl -X PUT [http://node1:9200/\_cluster/settings](http://node1:9200/_cluster/settings) -d '{  
"transient" : { "discovery.zen.minimum\_master\_nodes" : 2 } }' and validate  
that change in response that value was set.
3. Execute curl -X PUT [http://node2:9200/\_cluster/settings](http://node2:9200/_cluster/settings) -d '{  
"transient" : { "discovery.zen.minimum\_master\_nodes" : 2 } }' and validate  
that change in response that value was set.
4. Observe the update request accepted by node1 and node2 in  
elasticsearch.log  
(as: [discovery.zen] [node1] updating discovery.zen.minimum\_master\_nodes  
from [3] to [2])
5. Shutdown node3 and node4 (leaving node1 and node2 up).

I was expecting that given node1 and node2 now have minimum\_master\_nodes  
set to 2 BEFORE node3 and node4 were shutdown, node1 and node2 will  
continue to operate by electing either node1 or node2 as the new master.  
However, what I see in the log file is "not enough master nodes after  
master left (reason = shut\_down), current\_nodes: {[node1]...,[node2]...,,}".

Am I misunderstanding how this supposed to work? Using "persistent" or  
"transient" make no difference...  
Your assistance/feedback is greatly appreciated.

Thank you very much.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:24am UTC](https://discuss.elastic.co/t/updating-discovery-zen-minimum-master-nodes-new-value-ignored/12924/2 "2017-07-06T02:24:41Z")

</div>


