Move shards from one host to another

Hello Elastic

We have a cluster of 30 machines and each index has 1 replica. So we can tolerate 1 VM taken down. But we have to repair 2 VMs now. We have a day ahead of us. Is there a way to move all shards from the 2 VMs to the rest of the cluster? Any command?

I think https://www.elastic.co/guide/en/elasticsearch/reference/6.2/allocation-filtering.html could be what you are looking for.

if i exclude two machines? will the cluster go red?

i.e. { "transient" : { "cluster.routing.allocation.exclude._ip" : "ip1,ip2" } }

@warkolm

It'll start to move shards off those two nodes, but it shouldn't go red.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.