# Master only setting

**URL:** https://discuss.elastic.co/t/master-only-setting/61327
**Category:** Elasticsearch
**Created:** [September 23, 2016, 3:41am UTC](https://discuss.elastic.co/t/master-only-setting/61327 "2016-09-23T03:41:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anks](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anks](https://discuss.elastic.co/u/anks)
#### Post date: [September 23, 2016, 3:41am UTC](https://discuss.elastic.co/t/master-only-setting/61327/1 "2016-09-23T03:41:44Z")

</div>

Hi

I am running cluster with few master and few data nodes.

I want to understand that following setting will only be required for Master nodes or it will require on every Data as well as Master nodes ?

discovery.zen.minimum\_master\_nodes: 3

gateway.expected\_data\_nodes: 6

gateway.recover\_after\_nodes: 2

gateway.recover\_after\_time: 8m

Thanks a lot.

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [September 23, 2016, 7:43am UTC](https://discuss.elastic.co/t/master-only-setting/61327/2 "2016-09-23T07:43:50Z")

</div>

Hi @anks,

> [@anks](#):
>
> discovery.zen.minimum\_master\_nodes: 3

required on all nodes.

All gateway settings are only required on master nodes (see also [reference docs](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-gateway.html)).

Daniel

---

<div class="post-metadata">

### Author: ![anks](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anks](https://discuss.elastic.co/u/anks)
#### Post date: [September 23, 2016, 2:56pm UTC](https://discuss.elastic.co/t/master-only-setting/61327/3 "2016-09-23T14:56:02Z")

</div>

Thanks a lot @danielmitterdorfer

---

<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, 10:17pm UTC](https://discuss.elastic.co/t/master-only-setting/61327/4 "2017-07-05T22:17:41Z")

</div>


