es 调整每个 node 最大 shard 数量

新集群 5 台机器

Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [4999]/[5000] maximum shards open;

默认每个node 1000个,则最多 5000 个 shard,满了导致不能创建新的 es index

{
  "persistent" : {
    "cluster" : {
      "max_shards_per_node" : "100000"
    },
    "search" : {
      "max_buckets" : "50000"
    }
  },
  "transient" : {
    "cluster" : {
      "max_shards_per_node" : "100000"
    },
    "search" : {
      "max_buckets" : "50000"
    }
  }
}

留下评论

电子邮件地址不会被公开。 必填项已用*标注