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