[ElasticSearch] ElasticSearch 修改 shards 数量
ES7 默认的单节点 shards 数量是 1000 个分片,那么在我们默认3个集群下就是 3000 的 shards 数量,今天在创建索引时提示 shards 数量不足,那么就使用下方代码进行修改 shards 数量配置
PUT /_cluster/settings { "persistent": { "cluster": { "max_shards_per_node":10000 } } }
具体的使用情况也可以前往 Monitoring 中详细查看,也可以使用
GET _nodes/stats
本文来自博客园,作者:我就丶是逗比,转载请注明原文链接:https://www.cnblogs.com/lonewolfyx/articles/15752928.html