Hi Alex , Thanks for replaying. gateway.expected_datanodes settings works nicely , it starts recovery once all the datanodes (i configured) arrived.
Before performing full cluster restart , if the cluster in green state ,then no need for BalancedShardAllocator on initial recovery after restart .There should be different recovery instead of normal procedure since shards are already allocated and balanced before cluster restart. If i understand correctly, BalancedShardsAllocator can be turned off in-case of initial_recovery_from gateway, because while building cachedShardsState in LocalGatewayAllocator->allocateUnassigned() , itself we know the list of nodes which has the corresponding shard. Since initial recovery index/search wont be possible at this stage, rather than going through list of allocation deciders and BalancedShardsAllocator , we can directly assign all the shards immediately to the corresponding nodes with out throttling allocation. It avoids unnecessary shards movement across cluster due to BalancedShardAllocator. Some one correct me if am wrong here ! -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/505bed3b-9fba-4ac2-af39-fca57df45b40%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
