ES7 默认的单节点 shards 数量是 1000 个分片,那么在我们默认3个集群下就是 3000 的 shards 数量,今天在创建索引时提示 shards 数量不足,那么就使用下方代码进行修改 shards 数量配置
PUT /_cluster/settings
{
"persistent": {
"cluster": {
"max_shards_per_node":10000
}
}
}
具体的使用情况也可以前往 Monitoring 中详细查看,也可以使用
GET _nodes/stats

