解决:(永久性解决)
elasticsearch7版本以上的,默认只允许1000个分片,因为集群分片数不足引起的
下面命令给他扩容到10000 问题就解决了
curl --user elc:password -XPUT -H "Content-Type:application/json" -d '{"transient":{"cluster":{"max_shards_per_node":10000}}}' 'http://19.16.48.51:9200/_cluster/settings'
#elc(es用户):password(#es密码)
本文介绍了如何在Elasticsearch7及以上版本中,由于默认的1000个分片限制导致的集群问题。通过使用curl命令,以es用户权限更新集群设置,将`max_shards_per_node`值扩容至10000,从而解决问题。
1万+

被折叠的 条评论
为什么被折叠?



