# Fwd: minimum\_master\_nodes is explained conflict in elasticsearch.yml and Guide docs

**URL:** <https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848>\
**Category:** Elasticsearch\
**Created:** [December 13, 2013, 1:58am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848 "2013-12-13T01:58:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![liangwb2001](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@liangwb2001](https://discuss.elastic.co/u/liangwb2001)\
**Post date:** [December 13, 2013, 1:58am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/1 "2013-12-13T01:58:33Z")

</div>

Hi, I have a doubt point when setup a 3 master nodes cluster. Cause the  
minimum\_master\_nodes option's annotation in elasticsearch.yml:  
#Set to ensure a node sees N other master eligible nodes to be considered  
operational within the cluster. Set this option to a higher value (2-4) for  
large clusters (\>3 nodes).

```
 it means minimum_master_nodes not include current node self. so

```

minimum\_master\_nodes=N/2;

but in  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#master-election:](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#master-election:)  
#The discovery.zen.minimum\_master\_nodes allows to control the minimum  
number of master eligible nodes a node should "see" in order to operate  
within the cluster. Its recommended to set it to a higher value than 1 when  
running more than 2 nodes in the cluster.

```
it means minimum_master_nodes should include current node self. so

```

minimum\_master\_nodes=(N/2+1);

Would anyOne tell me which is right? Thanks.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 13, 2013, 2:27am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/2 "2013-12-13T02:27:19Z")

</div>

N/2+1 is the better choice.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 13 December 2013 12:58, Wenbo Liang [liangwb2001@gmail.com](mailto:liangwb2001@gmail.com) wrote:

> Hi, I have a doubt point when setup a 3 master nodes cluster. Cause the  
> minimum\_master\_nodes option's annotation in elasticsearch.yml:  
> #Set to ensure a node sees N other master eligible nodes to be  
> considered operational within the cluster. Set this option to a higher  
> value (2-4) for large clusters (\>3 nodes).
> 
> ```
> it means minimum_master_nodes not include current node self. so
> 
> ```
> 
> minimum\_master\_nodes=N/2;
> 
> but in  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#master-election:)  
> #The discovery.zen.minimum\_master\_nodes allows to control the minimum  
> number of master eligible nodes a node should "see" in order to operate  
> within the cluster. Its recommended to set it to a higher value than 1 when  
> running more than 2 nodes in the cluster.
> 
> ```
> it means minimum_master_nodes should include current node self. so
> 
> ```
> 
> minimum\_master\_nodes=(N/2+1);
> 
> Would anyOne tell me which is right? Thanks.
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624bT8xDF0NRC1duq6k1Z35%3DNW58WHsnEXVM%3DdCHLyMRVRQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624bT8xDF0NRC1duq6k1Z35%3DNW58WHsnEXVM%3DdCHLyMRVRQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![liangwb2001](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@liangwb2001](https://discuss.elastic.co/u/liangwb2001)\
**Post date:** [December 13, 2013, 4:55am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/3 "2013-12-13T04:55:51Z")

</div>

Thank you so quick answer

---

<div class="post-metadata">

**Author:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [December 15, 2013, 10:22am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/4 "2013-12-15T10:22:55Z")

</div>

Wenbo,

The minimum master node calculations always include the current node  
(unless node.master is set to false, or node.client=true in  
elasticsearch.yml).

I will update the elasticsearch.yml comment to match the docs.

Thanks,  
Boaz

On Friday, December 13, 2013 3:27:19 AM UTC+1, Mark Walkom wrote:

> N/2+1 is the better choice.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 13 December 2013 12:58, Wenbo Liang \<[liang...@gmail.com](mailto:liang...@gmail.com) \<javascript:\>\>wrote:
> 
> > Hi, I have a doubt point when setup a 3 master nodes cluster. Cause the  
> > minimum\_master\_nodes option's annotation in elasticsearch.yml:  
> > #Set to ensure a node sees N other master eligible nodes to be  
> > considered operational within the cluster. Set this option to a higher  
> > value (2-4) for large clusters (\>3 nodes).
> > 
> > ```
> > it means minimum_master_nodes not include current node self. so 
> > 
> > ```
> > 
> > minimum\_master\_nodes=N/2;
> > 
> > but in  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#master-election:)  
> > #The discovery.zen.minimum\_master\_nodes allows to control the minimum  
> > number of master eligible nodes a node should "see" in order to operate  
> > within the cluster. Its recommended to set it to a higher value than 1 when  
> > running more than 2 nodes in the cluster.
> > 
> > ```
> > it means minimum_master_nodes should include current node self. so 
> > 
> > ```
> > 
> > minimum\_master\_nodes=(N/2+1);
> > 
> > Would anyOne tell me which is right? Thanks.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADm5%2BcqJ3xxUwyGbc%3DJpDACAMXTya1PAPQEsAYM%2Bb%3DU8LNud1A%40mail.gmail.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b6ba437-ebd9-4cab-a425-9cc56eb4d323%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b6ba437-ebd9-4cab-a425-9cc56eb4d323%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![liangwb2001](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@liangwb2001](https://discuss.elastic.co/u/liangwb2001)\
**Post date:** [December 23, 2013, 6:00am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/5 "2013-12-23T06:00:28Z")

</div>

Thanks Boaz for so clear answer.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [July 17, 2015, 12:29am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/6 "2015-07-17T00:29:08Z")

</div>

I have a doubt when there are two nodes which are eligible to become master. What should be the best choice for discovery.zen.minimum\_master\_nodes in this scenario.

According to document it is recommended to have minimum of 3 nodes.

> If you have two regular nodes, you are in a conundrum. A quorum would be 2, but this means a loss of one node will make your cluster inoperable. A setting of 1 will allow your cluster to function, but doesn’t protect against split brain. It is best to have a minimum of three nodes in situations like this.

How can I prevent split brain when there are only two nodes sitting on different machine?

Regards,

---

<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, 12:00am UTC](https://discuss.elastic.co/t/fwd-minimum-master-nodes-is-explained-conflict-in-elasticsearch-yml-and-guide-docs/14848/7 "2017-07-06T00:00:53Z")

</div>


