Last active
October 12, 2018 14:51
-
-
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
This file contains 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
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