# Cluster ignores configuration changes via API

**URL:** <https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651>\
**Category:** Elasticsearch\
**Created:** [May 21, 2014, 5:55pm UTC](https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651 "2014-05-21T17:55:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Verlangen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_verlangen/32/1542_2.png) [@Robin\_Verlangen](https://discuss.elastic.co/u/Robin_Verlangen)\
**Post date:** [May 21, 2014, 5:55pm UTC](https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651/1 "2014-05-21T17:55:21Z")

</div>

Hi there,

I'm trying to adjust some settings persistently through the API.

For example setting the default number of shards:

_CURL Apply change:_  
curl -XPUT localhost:9200/\_cluster/settings -d '{ "persistent" : {  
"index.number\_of\_shards" : 2 } }'

_Change Response_  
{"acknowledged":true,"persistent":{},"transient":{}}

_CURL List settings_  
curl -XGET localhost:9200/\_cluster/settings

_Settings Response_  
{"persistent":{},"transient":{}}

Any ideas what's going on? I run version 1.0.0

Best regards,

Robin Verlangen  
_Chief Data Architect_

W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
E robin@us2.nl

[http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)  
_What is CloudPelican? [http://goo.gl/HkB3D](http://goo.gl/HkB3D)_

Disclaimer: The information contained in this message and attachments is  
intended solely for the attention and use of the named addressee and may be  
confidential. If you are not the intended recipient, you are reminded that  
the information remains the property of the sender. You must not use,  
disclose, distribute, copy, print or rely on this e-mail. If you have  
received this message in error, please contact the sender immediately and  
irrevocably delete this message and any copies.

--  
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/CADVHTB\_VEk%3Du%2Br38Dept\_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADVHTB_VEk%3Du%2Br38Dept_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 22, 2014, 2:57pm UTC](https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651/2 "2014-05-22T14:57:51Z")

</div>

You can even put an invalid setting such as { "foo" : "bar" } and no error  
will be returned. This behavior has always been the norm and I agree with  
you that invalid settings should be not ignored but an explicit error  
should be thrown.

BTW, here is a list of valid settings:

[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/settings/IndexDynamicSettingsModule.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/settings/IndexDynamicSettingsModule.java)

Cheers,

Ivan

On Wed, May 21, 2014 at 10:55 AM, Robin Verlangen [robin@us2.nl](mailto:robin@us2.nl) wrote:

> Hi there,
> 
> I'm trying to adjust some settings persistently through the API.
> 
> For example setting the default number of shards:
> 
> _CURL Apply change:_  
> curl -XPUT localhost:9200/\_cluster/settings -d '{ "persistent" : {  
> "index.number\_of\_shards" : 2 } }'
> 
> _Change Response_  
> {"acknowledged":true,"persistent":{},"transient":{}}
> 
> _CURL List settings_  
> curl -XGET localhost:9200/\_cluster/settings
> 
> _Settings Response_  
> {"persistent":{},"transient":{}}
> 
> Any ideas what's going on? I run version 1.0.0
> 
> Best regards,
> 
> Robin Verlangen  
> _Chief Data Architect_
> 
> W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
> E robin@us2.nl
> 
> [http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)  
> _What is CloudPelican? [http://goo.gl/HkB3D](http://goo.gl/HkB3D)_
> 
> Disclaimer: The information contained in this message and attachments is  
> intended solely for the attention and use of the named addressee and may be  
> confidential. If you are not the intended recipient, you are reminded that  
> the information remains the property of the sender. You must not use,  
> disclose, distribute, copy, print or rely on this e-mail. If you have  
> received this message in error, please contact the sender immediately and  
> irrevocably delete this message and any copies.
> 
> --  
> 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/CADVHTB\_VEk%3Du%2Br38Dept\_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADVHTB_VEk%3Du%2Br38Dept_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CADVHTB\_VEk%3Du%2Br38Dept\_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CADVHTB_VEk%3Du%2Br38Dept_vwwTCqYJBGn13P02A3ucXq6TtRY6g%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/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Robin\_Verlangen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_verlangen/32/1542_2.png) [@Robin\_Verlangen](https://discuss.elastic.co/u/Robin_Verlangen)\
**Post date:** [May 26, 2014, 9:57am UTC](https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651/3 "2014-05-26T09:57:58Z")

</div>

Thanks, makes sense. I'll create an issue on this.

Best regards,

Robin Verlangen  
_Chief Data Architect_

W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
E robin@us2.nl

[http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)  
_What is CloudPelican? [http://goo.gl/HkB3D](http://goo.gl/HkB3D)_

Disclaimer: The information contained in this message and attachments is  
intended solely for the attention and use of the named addressee and may be  
confidential. If you are not the intended recipient, you are reminded that  
the information remains the property of the sender. You must not use,  
disclose, distribute, copy, print or rely on this e-mail. If you have  
received this message in error, please contact the sender immediately and  
irrevocably delete this message and any copies.

On Thu, May 22, 2014 at 4:57 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> You can even put an invalid setting such as { "foo" : "bar" } and no  
> error will be returned. This behavior has always been the norm and I agree  
> with you that invalid settings should be not ignored but an explicit error  
> should be thrown.
> 
> BTW, here is a list of valid settings:
> 
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/settings/IndexDynamicSettingsModule.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/settings/IndexDynamicSettingsModule.java)
> 
> Cheers,
> 
> Ivan
> 
> On Wed, May 21, 2014 at 10:55 AM, Robin Verlangen [robin@us2.nl](mailto:robin@us2.nl) wrote:
> 
> > Hi there,
> > 
> > I'm trying to adjust some settings persistently through the API.
> > 
> > For example setting the default number of shards:
> > 
> > _CURL Apply change:_  
> > curl -XPUT localhost:9200/\_cluster/settings -d '{ "persistent" : {  
> > "index.number\_of\_shards" : 2 } }'
> > 
> > _Change Response_  
> > {"acknowledged":true,"persistent":{},"transient":{}}
> > 
> > _CURL List settings_  
> > curl -XGET localhost:9200/\_cluster/settings
> > 
> > _Settings Response_  
> > {"persistent":{},"transient":{}}
> > 
> > Any ideas what's going on? I run version 1.0.0
> > 
> > Best regards,
> > 
> > Robin Verlangen  
> > _Chief Data Architect_
> > 
> > W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
> > E robin@us2.nl
> > 
> > [http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)  
> > _What is CloudPelican? [http://goo.gl/HkB3D](http://goo.gl/HkB3D)_
> > 
> > Disclaimer: The information contained in this message and attachments is  
> > intended solely for the attention and use of the named addressee and may be  
> > confidential. If you are not the intended recipient, you are reminded that  
> > the information remains the property of the sender. You must not use,  
> > disclose, distribute, copy, print or rely on this e-mail. If you have  
> > received this message in error, please contact the sender immediately and  
> > irrevocably delete this message and any copies.
> > 
> > --  
> > 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/CADVHTB\_VEk%3Du%2Br38Dept\_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADVHTB_VEk%3Du%2Br38Dept_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CADVHTB\_VEk%3Du%2Br38Dept\_vwwTCqYJBGn13P02A3ucXq6TtRY6g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CADVHTB_VEk%3Du%2Br38Dept_vwwTCqYJBGn13P02A3ucXq6TtRY6g%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/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDSz3ngTo-e3wAdGt6Emdsh4%2BgXz1%2ButL1MTcA6W%2BOz%2BQ%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/CADVHTB8zAeE\_c83763k6i2vxAJbYCo5M%2BWzj4HuQgtCkuXZyQA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADVHTB8zAeE_c83763k6i2vxAJbYCo5M%2BWzj4HuQgtCkuXZyQA%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:26am UTC](https://discuss.elastic.co/t/cluster-ignores-configuration-changes-via-api/17651/4 "2017-07-06T01:26:57Z")

</div>


