Created
December 8, 2016 10:22
-
-
Save hartfordfive/4fe09f1e0d3f09dad489ab307e99bf67 to your computer and use it in GitHub Desktop.
Exclude Elasticsearch Node from Cluster and Relocate Data
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
| # 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