ElasticSearch2.3.2 轮流重启升级流程

ElasticSearch2.3.2 轮流重启升级流程

1.关闭分片迁移

PUT /_cluster/settings {"transient":{"cluster.routing.allocation.enable":"none"}}

2.可选操作 停止非必要的索引操作

POST /_flush/synced

3.停止并升级单个节点

如果使用zip安装,建议使用不同的config data logs plugin目录 方便后续失败回滚操作

4.启动新节点

GET _cat/nodes

5.重新开启分片自动迁移

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

6.观察数据恢复情况

GET _cat/health

猜你喜欢

转载自corejava2008.iteye.com/blog/2306883