I'm trying to move all the shards (primary and copies) from one specific elasticsearch node to others.
While doing some studies, I came to know about Cluster-level shard allocation filtering where I can specify the node name which I want to ignore while allocating shards.
PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.exclude._name" : "data-node-1"
}
}
My questions are,
- If I dynamically update the setting, will the shards be moved from the nodes that I excluded to other nodes automatically?
- How can I check and make sure that all shards are moved from a specific node?