Skip to content

Instantly share code, notes, and snippets.

@fdv
Created February 4, 2014 09:32
Show Gist options
  • Select an option

  • Save fdv/8800597 to your computer and use it in GitHub Desktop.

Select an option

Save fdv/8800597 to your computer and use it in GitHub Desktop.
Gracefully restart an ES cluster
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