# Adding entries in elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/adding-entries-in-elasticsearch-yml/64069>\
**Category:** Elasticsearch\
**Created:** [October 26, 2016, 9:43pm UTC](https://discuss.elastic.co/t/adding-entries-in-elasticsearch-yml/64069 "2016-10-26T21:43:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![somerandomguy](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@somerandomguy](https://discuss.elastic.co/u/somerandomguy)\
**Post date:** [October 26, 2016, 9:43pm UTC](https://discuss.elastic.co/t/adding-entries-in-elasticsearch-yml/64069/1 "2016-10-26T21:43:03Z")

</div>

Hello.  
I have a cluster consisting of 9 nodes (2 master nodes, 5 data nodes and 2 client nodes).

I would like to add the following to my nodes in the elasticsearch.yml file for high/low water marks. Do I have to add it to all nodes and then restart them all or I can just add it to my master nodes and just restart them?

cluster.routing.allocation.disk.threshold\_enabled: True  
cluster.routing.allocation.disk.watermark.low: 20gb  
cluster.routing.allocation.disk.watermark.high: 10gb

I know I can follow this but I have not played around with it before.  
[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/disk.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/disk.html)

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [October 26, 2016, 11:18pm UTC](https://discuss.elastic.co/t/adding-entries-in-elasticsearch-yml/64069/2 "2016-10-26T23:18:28Z")

</div>

both are valid ways of doing it,

elasticsearch.yml = I would say it is important to keep it consistant across all servers.

the Link you provided shows how to make it a "transient" change which means if you restart your cluster it will default back to default or what is in your elasticsearch.yml. Now if you use the "persistent" you only have to issue it to one server in the cluster and all servers are updated. But this info is stored in the "data" directory, so as long as you never delete that it will be maintained.

I would advise making it in the elasticsearch.yml and only use the persistent or transient when you have to as it is a pain to remove later on.

---

<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:09pm UTC](https://discuss.elastic.co/t/adding-entries-in-elasticsearch-yml/64069/3 "2017-07-05T22:09:19Z")

</div>


