Move shards/index away from an Elasticsearch Data Node

POST _cluster/reroute
{
“commands” : [
{
“move” : {
“index” : “logstash-default-gigacim-2022.01.17”, “shard” : 9,
“from_node” : “f12glog29_d3”, “to_node” : “f12glog21_d2”
}
}
]
}
PUT logstash-*-2022.03.02/_settings
{
"index.routing.allocation.exclude._ip": "10.xx.xx.xx"
}
PUT .monitoring-kibana-*-2022.03.02/_settings
{
"index.routing.allocation.exclude._ip": "10.xx.xx.xx"
}
PUT .monitoring-es-*-2022.03.02/_settings{
"index.routing.allocation.exclude._ip": "10.xx.xx.xx"
}
PUT _cluster/settings 
{ "transient" :
{ "cluster.routing.allocation.exclude._ip" : "10.xx.xx.xx" }
}
PUT _cluster/settings 
{ "transient" :
{ "cluster.routing.allocation.exclude._name" : "es_node_1" }
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store