# Setting index.routing.allocation.total\_shards\_per\_node to 1 still results in data nodes getting more than one shard

**URL:** <https://discuss.elastic.co/t/setting-index-routing-allocation-total-shards-per-node-to-1-still-results-in-data-nodes-getting-more-than-one-shard/143590>\
**Category:** Elasticsearch\
**Created:** [August 8, 2018, 8:26pm UTC](https://discuss.elastic.co/t/setting-index-routing-allocation-total-shards-per-node-to-1-still-results-in-data-nodes-getting-more-than-one-shard/143590 "2018-08-08T20:26:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oferkes](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Oferkes](https://discuss.elastic.co/u/Oferkes)\
**Post date:** [August 8, 2018, 8:26pm UTC](https://discuss.elastic.co/t/setting-index-routing-allocation-total-shards-per-node-to-1-still-results-in-data-nodes-getting-more-than-one-shard/143590/1 "2018-08-08T20:26:41Z")

</div>

Hi,

i have an index that is constantly created on the same data node, regardless of how many shards i assign to it.  
when using index.routing.allocation.total\_shards\_per\_node and setting it to 1, the shards are relocated, but still the original node remains with more than 1 shard. sometimes, other nodes get more than 1 shard.  
there are no unassigned shards in the cluster.  
i have 22 data nodes in the cluster, with 11K active shards.  
what can be the reason for it? how can i force ES to distribute the shards evenly on all other nodes?

thanks,  
Ofer

---

<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:** [September 5, 2018, 8:26pm UTC](https://discuss.elastic.co/t/setting-index-routing-allocation-total-shards-per-node-to-1-still-results-in-data-nodes-getting-more-than-one-shard/143590/2 "2018-09-05T20:26:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
