1. 停止所有index服务
2. 执行curl -XPUT $url/_cluster/settings?pretty -d '{"transient" : {"cluster.routing.allocation.enable" : "none"}}'
3. 执行curl -XPOST $url/_flush/synced?pretty
4. 重启ES集群
5. 等待集群分片全部分配成功,执行curl -XPUT $url/_cluster/settings?pretty -d '{"transient" : {"cluster.routing.allocation.enable" : "all"}}'
6. 开启所有index服务

相关文章:

  • 2021-09-30
  • 2021-12-01
  • 2022-12-23
  • 2021-10-14
  • 2022-01-26
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2021-07-24
  • 2021-08-02
  • 2022-01-21
  • 2022-02-24
相关资源
相似解决方案