Skip to content

Instantly share code, notes, and snippets.

@iconara
Created February 25, 2014 10:54
Show Gist options
  • Save iconara/9206807 to your computer and use it in GitHub Desktop.
Save iconara/9206807 to your computer and use it in GitHub Desktop.
Restart an ElasticSearch node
curl -XPUT localhost:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.disable_allocation": true}}'
sudo service elasticsearch restart
# ... wait for the host to start ...
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