ES 分片爆满

ES报错:
Validation Failed: 1: this action would add [1] total shards, but this cluster currently has [2000]/[2000] maximum shards open;
[es01] unexpected error while indexing monitoring document

原因:ES集群默认有最大分片数2000的限制,达到最大数以后,无法添加新的分片,导致无法创建索引写入日志。

解决:在kibana上的DEV TOOL工具里执行如下命令。

PUT /_cluster/settings
{
  "transient": {
    "cluster": {
      "max_shards_per_node":12000
    }
  }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章