1、关闭节点自动复制功能
curl -PUT http://xxxx:9200/_cluster/settings -d '{"transient": {"cluster.routing.allocation.enable": "none"}}'
2、依次重启集群节点
3、恢复节点自动复制功能
curl -PUT http://xxxx:9200/_cluster/settings -d '{"transient": {"cluster.routing.allocation.enable": "all"}}'