ES正常停止步骤

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服务

posted @ 2017-08-14 16:18  bonelee  阅读(3981)  评论(0编辑  收藏  举报