- 禁用分片分配 Disable shard allocation
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "none"
}
}
2.停止非必要的索引并执行同步刷新 Stop non-essential indexing and perform a synced flush
POST _flush/synced
3.停止并升级单个节点 stop one node ,and do upgrade
3.1 复制配置,检查版本配置冲突
3.2 下载对应版本
3.3 解压并且替换配置文件
3.4 更新插件
4.启动节点
5.启用分片分配
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}
6.等待集群green
7.重复上面步骤