# Maximum shards per node

**URL:** https://discuss.elastic.co/t/maximum-shards-per-node/273830
**Category:** Elasticsearch
**Created:** [May 24, 2021, 1:38pm UTC](https://discuss.elastic.co/t/maximum-shards-per-node/273830 "2021-05-24T13:38:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Muna](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Muna](https://discuss.elastic.co/u/Muna)
#### Post date: [May 24, 2021, 1:38pm UTC](https://discuss.elastic.co/t/maximum-shards-per-node/273830/1 "2021-05-24T13:38:15Z")

</div>

Is there any option to disable the max\_shard\_per\_node in cluster settings in Elastic 7.12  
as in the older version 6.5 there is no such values.

Elastic 7.12

"cluster" : {  
"max\_shards\_per\_node" : "1000"  
}

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 24, 2021, 1:53pm UTC](https://discuss.elastic.co/t/maximum-shards-per-node/273830/2 "2021-05-24T13:53:03Z")

</div>

You should not do this as this setting is there to prevent you from getting into a state where the cluster no longer can operate or be fixed.

If you are migrating and have too many shards I would recommend reducing the shard count before migrating.

---

<div class="post-metadata">

### Author: ![charles97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles97/32/79243_2.png) [@charles97](https://discuss.elastic.co/u/charles97)
#### Post date: [May 25, 2021, 2:17am UTC](https://discuss.elastic.co/t/maximum-shards-per-node/273830/3 "2021-05-25T02:17:54Z")

</div>

I was working on development and single node cluster and this helps:  
`curl -X PUT X.X.X.X:9200/_cluster/settings -H "Content-Type: application/json" -d '{ "persistent": { "cluster.max_shards_per_node": "3000" } }`  
Do at your own risk 🙂 , this could lead into shard failure

---

<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: [June 22, 2021, 2:18am UTC](https://discuss.elastic.co/t/maximum-shards-per-node/273830/4 "2021-06-22T02:18:13Z")

</div>

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