Where the source code that locate the shard data from primary to replica


(Kewn21) #1

After change the dynamic index setting which is number_of_replicas,ShardsAllocators would rebalance shard by BalancedShardsAllocator's Balancer,but i can't find which code to send the primary shard data to replica node.


(Jason Tedor) #2

Take a look at org.elasticsearch.indices.recovery.RecoverySource.


(system) #3