es Failed: 1: this action would add [2] total shards, but this cluster currently has [1001]/[1000]

你用的7版本以上的elasticsearch吧,默認只允許1000個分片,問題是因爲集羣分片數不足引起的。
現在在elasticsearch.yml中定義

PUT /_cluster/settings
{
  "transient": {
    "cluster": {
      "max_shards_per_node":10000
    }
  }
}

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