# Total\_shards\_per\_node not working correctly

**URL:** <https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754>\
**Category:** Elasticsearch\
**Created:** [April 18, 2017, 5:09pm UTC](https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754 "2017-04-18T17:09:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [April 18, 2017, 5:09pm UTC](https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754/1 "2017-04-18T17:09:34Z")

</div>

We have an indices with 12 shards and two replica. Total no. of nodes is:38. We have two extra nodes to make sure failure of one or two nodes doesn't make the shard(s) UNASSIGNED. I have set total\_shards\_per\_node for this indices to 1. I noticed that one node has 2 shards (replica) allocated to one node. Rest of the nodes have one shard. I am not sure why total\_shards\_per\_node for the indices is not working as expected.

---

<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:** [April 18, 2017, 9:44pm UTC](https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754/2 "2017-04-18T21:44:14Z")

</div>

What version?

---

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [April 18, 2017, 11:24pm UTC](https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754/3 "2017-04-18T23:24:07Z")

</div>

1.7.2

---

<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:** [May 16, 2017, 11:26pm UTC](https://discuss.elastic.co/t/total-shards-per-node-not-working-correctly/82754/4 "2017-05-16T23:26:42Z")

</div>

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