# Updating node settings

**URL:** https://discuss.elastic.co/t/updating-node-settings/21057
**Category:** Elasticsearch
**Created:** [December 3, 2014, 11:10am UTC](https://discuss.elastic.co/t/updating-node-settings/21057 "2014-12-03T11:10:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ernesto\_Reig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ernesto_reig/32/951_2.png) [@Ernesto\_Reig](https://discuss.elastic.co/u/Ernesto_Reig)
#### Post date: [December 3, 2014, 11:10am UTC](https://discuss.elastic.co/t/updating-node-settings/21057/1 "2014-12-03T11:10:49Z")

</div>

Hello,  
I would like to update the settings of all the nodes in our cluster without  
having to restart them. The settings are the following:  
PUT \_cluster/settings  
{  
"persistent" : {  
"gateway.type": "local",  
"gateway.recover\_after\_nodes": 3,  
"gateway.expected\_nodes": 3,  
"gateway.recover\_after\_time": "30m",  
"gateway.local.auto\_import\_dangled": "no",  
"gateway.local.dangling\_timeout": "30m"  
}  
}

After executing the precious instruction I get an "aknowledge:true" answer,  
however when I try to get the settings via "get \_nodes/settings", those  
settings are not updated at all. Any idea why this happens? Do these  
settings require a restart?

Kind regards,

Ernesto

--  
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/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.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: [December 3, 2014, 11:28am UTC](https://discuss.elastic.co/t/updating-node-settings/21057/2 "2014-12-03T11:28:48Z")

</div>

Maybe because you are looking at \_node when you applied it to \_cluster, see  
if they are returned when you get \_cluster/settings.

Cluster settings are applied to the nodes, but they are not "stored' in the  
same API endpoint.

On 3 December 2014 at 22:10, Ernesto Reig [ernirulez@gmail.com](mailto:ernirulez@gmail.com) wrote:

> Hello,  
> I would like to update the settings of all the nodes in our cluster  
> without having to restart them. The settings are the following:  
> PUT \_cluster/settings  
> {  
> "persistent" : {  
> "gateway.type": "local",  
> "gateway.recover\_after\_nodes": 3,  
> "gateway.expected\_nodes": 3,  
> "gateway.recover\_after\_time": "30m",  
> "gateway.local.auto\_import\_dangled": "no",  
> "gateway.local.dangling\_timeout": "30m"  
> }  
> }
> 
> After executing the precious instruction I get an "aknowledge:true"  
> answer, however when I try to get the settings via "get \_nodes/settings",  
> those settings are not updated at all. Any idea why this happens? Do these  
> settings require a restart?
> 
> Kind regards,
> 
> Ernesto
> 
> --  
> 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/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.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/CAEYi1X8a5%3D5hx69KngkuY9aEkbK4i6J-RyEUOsZVaP9GDgmpwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8a5%3D5hx69KngkuY9aEkbK4i6J-RyEUOsZVaP9GDgmpwQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ernesto\_Reig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ernesto_reig/32/951_2.png) [@Ernesto\_Reig](https://discuss.elastic.co/u/Ernesto_Reig)
#### Post date: [December 3, 2014, 11:31am UTC](https://discuss.elastic.co/t/updating-node-settings/21057/3 "2014-12-03T11:31:15Z")

</div>

That was the first place I look into (get \_cluster/settings), and I just  
got:  
{  
"persistent": {},  
"transient": {}  
}

On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:

> Maybe because you are looking at \_node when you applied it to \_cluster,  
> see if they are returned when you get \_cluster/settings.
> 
> Cluster settings are applied to the nodes, but they are not "stored' in  
> the same API endpoint.
> 
> On 3 December 2014 at 22:10, Ernesto Reig \<[erni...@gmail.com](mailto:erni...@gmail.com) \<javascript:\>
> 
> > wrote:
> 
> > Hello,  
> > I would like to update the settings of all the nodes in our cluster  
> > without having to restart them. The settings are the following:  
> > PUT \_cluster/settings  
> > {  
> > "persistent" : {  
> > "gateway.type": "local",  
> > "gateway.recover\_after\_nodes": 3,  
> > "gateway.expected\_nodes": 3,  
> > "gateway.recover\_after\_time": "30m",  
> > "gateway.local.auto\_import\_dangled": "no",  
> > "gateway.local.dangling\_timeout": "30m"  
> > }  
> > }
> > 
> > After executing the precious instruction I get an "aknowledge:true"  
> > answer, however when I try to get the settings via "get \_nodes/settings",  
> > those settings are not updated at all. Any idea why this happens? Do these  
> > settings require a restart?
> > 
> > Kind regards,
> > 
> > Ernesto
> > 
> > --  
> > 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/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.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/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.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: [December 3, 2014, 11:59am UTC](https://discuss.elastic.co/t/updating-node-settings/21057/4 "2014-12-03T11:59:46Z")

</div>

Then that's not a setting you can apply via the API, you need to edit the  
elaticsearch.yml and restart unfortunately.

On 3 December 2014 at 22:31, Ernesto Reig [ernirulez@gmail.com](mailto:ernirulez@gmail.com) wrote:

> That was the first place I look into (get \_cluster/settings), and I just  
> got:  
> {  
> "persistent": {},  
> "transient": {}  
> }
> 
> On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:
> 
> > Maybe because you are looking at \_node when you applied it to \_cluster,  
> > see if they are returned when you get \_cluster/settings.
> > 
> > Cluster settings are applied to the nodes, but they are not "stored' in  
> > the same API endpoint.
> > 
> > On 3 December 2014 at 22:10, Ernesto Reig [erni...@gmail.com](mailto:erni...@gmail.com) wrote:
> > 
> > > Hello,  
> > > I would like to update the settings of all the nodes in our cluster  
> > > without having to restart them. The settings are the following:  
> > > PUT \_cluster/settings  
> > > {  
> > > "persistent" : {  
> > > "gateway.type": "local",  
> > > "gateway.recover\_after\_nodes": 3,  
> > > "gateway.expected\_nodes": 3,  
> > > "gateway.recover\_after\_time": "30m",  
> > > "gateway.local.auto\_import\_dangled": "no",  
> > > "gateway.local.dangling\_timeout": "30m"  
> > > }  
> > > }
> > > 
> > > After executing the precious instruction I get an "aknowledge:true"  
> > > answer, however when I try to get the settings via "get \_nodes/settings",  
> > > those settings are not updated at all. Any idea why this happens? Do these  
> > > settings require a restart?
> > > 
> > > Kind regards,
> > > 
> > > Ernesto
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.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/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.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/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ernesto\_Reig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ernesto_reig/32/951_2.png) [@Ernesto\_Reig](https://discuss.elastic.co/u/Ernesto_Reig)
#### Post date: [December 3, 2014, 12:20pm UTC](https://discuss.elastic.co/t/updating-node-settings/21057/5 "2014-12-03T12:20:49Z")

</div>

Ok, thank you very much for the answer 🙂

On 3 December 2014 at 12:59, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Then that's not a setting you can apply via the API, you need to edit the  
> elaticsearch.yml and restart unfortunately.
> 
> On 3 December 2014 at 22:31, Ernesto Reig [ernirulez@gmail.com](mailto:ernirulez@gmail.com) wrote:
> 
> > That was the first place I look into (get \_cluster/settings), and I just  
> > got:  
> > {  
> > "persistent": {},  
> > "transient": {}  
> > }
> > 
> > On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:
> > 
> > > Maybe because you are looking at \_node when you applied it to \_cluster,  
> > > see if they are returned when you get \_cluster/settings.
> > > 
> > > Cluster settings are applied to the nodes, but they are not "stored' in  
> > > the same API endpoint.
> > > 
> > > On 3 December 2014 at 22:10, Ernesto Reig [erni...@gmail.com](mailto:erni...@gmail.com) wrote:
> > > 
> > > > Hello,  
> > > > I would like to update the settings of all the nodes in our cluster  
> > > > without having to restart them. The settings are the following:  
> > > > PUT \_cluster/settings  
> > > > {  
> > > > "persistent" : {  
> > > > "gateway.type": "local",  
> > > > "gateway.recover\_after\_nodes": 3,  
> > > > "gateway.expected\_nodes": 3,  
> > > > "gateway.recover\_after\_time": "30m",  
> > > > "gateway.local.auto\_import\_dangled": "no",  
> > > > "gateway.local.dangling\_timeout": "30m"  
> > > > }  
> > > > }
> > > > 
> > > > After executing the precious instruction I get an "aknowledge:true"  
> > > > answer, however when I try to get the settings via "get \_nodes/settings",  
> > > > those settings are not updated at all. Any idea why this happens? Do these  
> > > > settings require a restart?
> > > > 
> > > > Kind regards,
> > > > 
> > > > Ernesto
> > > > 
> > > > --  
> > > > 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).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.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/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/OFHKnlMbBEw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/OFHKnlMbBEw/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%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/CAJg-YDLSMC9176E12H%3Db98Dq%2BEq0bHSbvDcMKgU25qUnuJiNAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJg-YDLSMC9176E12H%3Db98Dq%2BEq0bHSbvDcMKgU25qUnuJiNAQ%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, 12:46am UTC](https://discuss.elastic.co/t/updating-node-settings/21057/6 "2017-07-06T00:46:19Z")

</div>


