Elasticsearch maximum shards open 的问题

https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-cluster.html

修改 yml 文件:

cluster.max_shards_per_node 的配置

或者

PUT _cluster/settings

1
2
3
4
5
{
"transient": {
"cluster.max_shards_per_node": 5000
}
}