Skip to content

Instantly share code, notes, and snippets.

@hartfordfive
Created December 8, 2016 10:22
Show Gist options
  • Select an option

  • Save hartfordfive/4fe09f1e0d3f09dad489ab307e99bf67 to your computer and use it in GitHub Desktop.

Select an option

Save hartfordfive/4fe09f1e0d3f09dad489ab307e99bf67 to your computer and use it in GitHub Desktop.
Exclude Elasticsearch Node from Cluster and Relocate Data
# Remove the node from the cluster
curl -XPUT "http://[ES_NODE_IP]:9200/_cluster/settings" -d '{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "[ES_NODE_IP_TO_REMOVE]"
}
}'
# Check the pending cluster task status
curl "http://[ES_NODE_IP]:9200 /_cluster/pending_tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment