# Gateway.recover\_after\_nodes & minimum\_master\_nodes in a distributed environment?

**URL:** https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465
**Category:** Elasticsearch
**Created:** [August 26, 2014, 1:37pm UTC](https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465 "2014-08-26T13:37:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 26, 2014, 1:37pm UTC](https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465/1 "2014-08-26T13:37:38Z")

</div>

Hello all,

Question  
about gateway.recover\_after\_nodes and discovery.zen.minimum\_master\_nodes in  
a distributed ES cluster. By "distributed" I mean I have:

2 nodes that are data only:  
'node.data' =\> 'true',  
'node.master' =\> 'false',  
'http.enabled' =\> 'false',

1 node that is a master/search only node:  
'node.master' =\> 'true',  
'node.data' =\> 'false',  
'http.enabled' =\> 'true',

When setting discovery.zen.minimum\_master\_nodes, is the (n / 2) + 1 formula  
including _all_ nodes of all types in the cluster, or just those who can be  
masters?

Similarly, when setting gateway.recover\_after\_nodes, is this value the  
number of all nodes of all types in the cluster, or just those that are  
data nodes?

Thank you very much for your time!  
Chris

--  
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/CAND3DphDg41GUrj-YLfU7W0\_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [August 26, 2014, 11:25pm UTC](https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465/2 "2014-08-26T23:25:10Z")

</div>

Only master eligible for discovery.zen.minimum\_master\_nodes, so in your  
case it is 1. And that's bad as you can end up with a split brain  
situation. You should, if you can, make all three nodes master eligible.

gateway.recover\_after\_nodes is all nodes, as per

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Regards,  
Mark Walkom

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

On 26 August 2014 23:37, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net) wrote:

> Hello all,
> 
> Question  
> about gateway.recover\_after\_nodes and discovery.zen.minimum\_master\_nodes in  
> a distributed ES cluster. By "distributed" I mean I have:
> 
> 2 nodes that are data only:  
> 'node.data' =\> 'true',  
> 'node.master' =\> 'false',  
> 'http.enabled' =\> 'false',
> 
> 1 node that is a master/search only node:  
> 'node.master' =\> 'true',  
> 'node.data' =\> 'false',  
> 'http.enabled' =\> 'true',
> 
> When setting discovery.zen.minimum\_master\_nodes, is the (n / 2) + 1  
> formula including _all_ nodes of all types in the cluster, or just  
> those who can be masters?
> 
> Similarly, when setting gateway.recover\_after\_nodes, is this value the  
> number of all nodes of all types in the cluster, or just those that are  
> data nodes?
> 
> Thank you very much for your time!  
> Chris
> 
> --  
> 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/CAND3DphDg41GUrj-YLfU7W0\_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0\_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR\_CRCV%3DhM9FZCAqOpw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR_CRCV%3DhM9FZCAqOpw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 27, 2014, 2:06am UTC](https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465/3 "2014-08-27T02:06:52Z")

</div>

Thank you Mark. Makes perfect sense.

Chris

On Tue, Aug 26, 2014 at 6:25 PM, Mark Walkom [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
wrote:

> Only master eligible for discovery.zen.minimum\_master\_nodes, so in your  
> case it is 1. And that's bad as you can end up with a split brain  
> situation. You should, if you can, make all three nodes master eligible.
> 
> gateway.recover\_after\_nodes is all nodes, as per  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html#recover-after)
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 26 August 2014 23:37, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net) wrote:
> 
> > Hello all,
> > 
> > Question  
> > about gateway.recover\_after\_nodes and discovery.zen.minimum\_master\_nodes in  
> > a distributed ES cluster. By "distributed" I mean I have:
> > 
> > 2 nodes that are data only:  
> > 'node.data' =\> 'true',  
> > 'node.master' =\> 'false',  
> > 'http.enabled' =\> 'false',
> > 
> > 1 node that is a master/search only node:  
> > 'node.master' =\> 'true',  
> > 'node.data' =\> 'false',  
> > 'http.enabled' =\> 'true',
> > 
> > When setting discovery.zen.minimum\_master\_nodes, is the (n / 2) + 1  
> > formula including _all_ nodes of all types in the cluster, or just  
> > those who can be masters?
> > 
> > Similarly, when setting gateway.recover\_after\_nodes, is this value the  
> > number of all nodes of all types in the cluster, or just those that are  
> > data nodes?
> > 
> > Thank you very much for your time!  
> > Chris
> > 
> > --  
> > 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/CAND3DphDg41GUrj-YLfU7W0\_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0\_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DphDg41GUrj-YLfU7W0_L6veTXMJjJPJ7Wfu6V9VsvdKHw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR\_CRCV%3DhM9FZCAqOpw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR_CRCV%3DhM9FZCAqOpw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR\_CRCV%3DhM9FZCAqOpw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEM624biBGL9O7zaT%3Dfm3%2BfNRCMoDrQDR_CRCV%3DhM9FZCAqOpw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAND3Dpg8z92md3%3D-njUj4Zb%2BXu7Z65XOzDK4hw%2B6XjKv2pGSzA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpg8z92md3%3D-njUj4Zb%2BXu7Z65XOzDK4hw%2B6XjKv2pGSzA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:06am UTC](https://discuss.elastic.co/t/gateway-recover-after-nodes-minimum-master-nodes-in-a-distributed-environment/19465/4 "2017-07-06T01:06:10Z")

</div>


