# Limit number of shards on a particular Elasticsearch node

**URL:** <https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943>\
**Category:** Elasticsearch\
**Created:** [February 11, 2021, 3:17am UTC](https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943 "2021-02-11T03:17:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitish\_Goyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitish_goyal/32/54988_2.png) [@Nitish\_Goyal](https://discuss.elastic.co/u/Nitish_Goyal)\
**Post date:** [February 11, 2021, 3:17am UTC](https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943/1 "2021-02-11T03:17:42Z")

</div>

I have a huge 300 node Elasticsearch cluster and the machines added over the years are with different configuration.

By default, elasticsearch tries to make sure equal number of shards exists on each and every node of the cluster. Since, my node size is non-uniform, I want to limit number of shards on certain nodes.

This property `cluster.routing.allocation.total_shards_per_node` is cluster level setting and limits the number of shards on every node in the cluster.

Can someone suggest what is the ideal way of doing this?

---

<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:** [February 11, 2021, 3:18am UTC](https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943/2 "2021-02-11T03:18:22Z")

</div>

What version are you on?

---

<div class="post-metadata">

**Author:** ![Nitish\_Goyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitish_goyal/32/54988_2.png) [@Nitish\_Goyal](https://discuss.elastic.co/u/Nitish_Goyal)\
**Post date:** [March 4, 2021, 3:45am UTC](https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943/3 "2021-03-04T03:45:32Z")

</div>

6.8.3

---

<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:** [April 1, 2021, 3:45am UTC](https://discuss.elastic.co/t/limit-number-of-shards-on-a-particular-elasticsearch-node/263943/4 "2021-04-01T03:45:46Z")

</div>

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