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
    }
  }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章