# Dynamic setting of "cluster.routing.allocation.same\_shard.host: true" is not working

**URL:** <https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644>\
**Category:** Elasticsearch\
**Created:** [March 29, 2016, 4:15am UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644 "2016-03-29T04:15:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)\
**Post date:** [March 29, 2016, 4:15am UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644/1 "2016-03-29T04:15:52Z")

</div>

curl -XPUT [http://10.110.9.1:9200/\_cluster/settings](http://10.110.9.1:9200/_cluster/settings) -d '{ "persistent" : {"cluster.routing.allocation.same\_shard.host": "true"}}'

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

curl -XGET [http://10.110.9.1:9200/\_cluster/settings](http://10.110.9.1:9200/_cluster/settings)  
{"persistent":{"cluster":{"routing":{"allocation":{"cluster\_concurrent\_rebalance":"16","node\_concurrent\_recoveries":"16","node\_initial\_primaries\_recoveries":"16"}},"info":{"update":{"interval":"1m"}}},"indices":{"recovery":{"concurrent\_streams":"16","translog\_size":"4mb","concurrent\_small\_file\_streams":"16","max\_bytes\_per\_sec":"500mb","file\_chunk\_size":"4mb"}}},"transient":{}}

any ideas?

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [April 12, 2016, 9:50pm UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644/2 "2016-04-12T21:50:37Z")

</div>

Same concern here, the PUT succeeds but the settings do now show up in GET

---

<div class="post-metadata">

**Author:** ![Sartner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sartner/32/21828_2.png) [@Sartner](https://discuss.elastic.co/u/Sartner)\
**Post date:** [October 6, 2016, 5:44am UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644/3 "2016-10-06T05:44:53Z")

</div>

I have the same problem now.

$ curl -XPUT [http://192.168.14.104:9200/\_cluster/settings](http://192.168.14.104:9200/_cluster/settings) -d '  
{  
"transient" : {  
"cluster.routing.allocation.same\_shard.host" : "true"  
}  
}  
'

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

My ES version is 2.3.5

---

<div class="post-metadata">

**Author:** ![Sartner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sartner/32/21828_2.png) [@Sartner](https://discuss.elastic.co/u/Sartner)\
**Post date:** [October 6, 2016, 5:57am UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644/4 "2016-10-06T05:57:43Z")

</div>

I found the same question on github, [https://github.com/elastic/elasticsearch/issues/17693](https://github.com/elastic/elasticsearch/issues/17693)

it says  
"The reason for this is that is "cluster.routing.allocation.same\_shard.host" is not a dynamic setting, it needs to be set at startup time currently."

---

<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:14pm UTC](https://discuss.elastic.co/t/dynamic-setting-of-cluster-routing-allocation-same-shard-host-true-is-not-working/45644/5 "2017-07-05T22:14:29Z")

</div>


