ES7 默認的單節點 shards 數量是 1000 個分片,那么在我們默認3個集群下就是 3000 的 shards 數量,今天在創建索引時提示 shards 數量不足,那么就使用下方代碼進行修改 shards 數量配置
PUT /_cluster/settings { "persistent": { "cluster": { "max_shards_per_node":10000 } } }
具體的使用情況也可以前往 Monitoring 中詳細查看,也可以使用
GET _nodes/stats