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
}
}
}