Skip to content

Instantly share code, notes, and snippets.

@waltercool
Last active October 12, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltercool/b3247dfc562b6e29683295918d49f323 to your computer and use it in GitHub Desktop.
Save waltercool/b3247dfc562b6e29683295918d49f323 to your computer and use it in GitHub Desktop.
Excluding ElasticSearch node and migrate all it data for shutdown or maintainance operations
curl -XPUT <hostname-or-IP>:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "X.X.X.X"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment