I want to know the exact procedure followed, for the allocation of shards on a node when the node leaves the cluster. Facts I know -
1.) ES waits for sometime before the reassigning the shards.
2.) For primary shards, a valid replica is searched for and then the replica is promoted to primary.
Questions I have
1.) Which allocator specifically handles this scenario?(BalancedShardAllocator/GatewayAllocator or some other?)
2.) What happens to replica shards, are they dropped or allocated to some other node..
Thanks.