ElasticSearch集群重启

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"}}'

猜你喜欢

转载自aftertoday.iteye.com/blog/2336733