• 确认Es集群是否打开了分片自动分配。(博主就是因为之前关闭自动分配,导致节点分片一直不移动。。)

PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "all"
  }
}

  • 使用api 将要删除节点的分片分配到其他节点中

PUT _cluster/settings

{
  "transient": {
    "cluster.routing.allocation.exclude._ip": "172.16.20.197"
  }
}

  •  运行api请求之后,可以在监控中发现有大量IO

Elasticsearch 删除节点操作

  •  等到所有分片都被分配到其他节点之后,就可以关闭要删除的节点。

相关文章:

  • 2022-01-14
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-05-08
  • 2021-12-25
  • 2021-11-30
猜你喜欢
  • 2021-11-30
  • 2021-11-30
  • 2021-12-26
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案