Maximum shards per node

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"

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.


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 :slight_smile: , this could lead into shard failure

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