Created
February 4, 2014 09:32
-
-
Save fdv/8800597 to your computer and use it in GitHub Desktop.
Gracefully restart an ES cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XPUT localhost:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.disable_allocation": true}}' | |
| /etc/init.d/elasticsearch restart | |
| curl -XPUT localhost:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.disable_allocation": false}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment