Move shards from one host to another


(Faiz Halde) #1

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?


(Mark Walkom) #2

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


(Faiz Halde) #3

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

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


(Faiz Halde) #4

@warkolm


(Mark Walkom) #5

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


(system) #6

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