# How to Modify ElasticSearch.yml file in Production

**URL:** <https://discuss.elastic.co/t/how-to-modify-elasticsearch-yml-file-in-production/31573>\
**Category:** Elasticsearch\
**Created:** [October 3, 2015, 6:57am UTC](https://discuss.elastic.co/t/how-to-modify-elasticsearch-yml-file-in-production/31573 "2015-10-03T06:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [October 3, 2015, 6:57am UTC](https://discuss.elastic.co/t/how-to-modify-elasticsearch-yml-file-in-production/31573/1 "2015-10-03T06:57:13Z")

</div>

I am installing in Google Compute Engine and i need ElasticSearch to be configured based on the production settings  
###################Gateway##################

# Allow recovery process after N nodes in a cluster are up:

# 

# gateway.recover\_after\_nodes: 8

and i have changed to 8 previously it was 2 so when i try remove "#" and save the .yml file and I try to restart the ealsticsearch server then it was not working.  
My query is that whether the updation is done or I need to remove the #  
Please answer  
Thanks in advance  
Kartheek

---

<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:** [October 3, 2015, 11:40pm UTC](https://discuss.elastic.co/t/how-to-modify-elasticsearch-yml-file-in-production/31573/2 "2015-10-03T23:40:12Z")

</div>

It'd help if you formatted that so we could see exactly what you did.

---

<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, 11:46pm UTC](https://discuss.elastic.co/t/how-to-modify-elasticsearch-yml-file-in-production/31573/3 "2017-07-05T23:46:54Z")

</div>


