pd
pd copied to clipboard
Prevent rebalancing immediately after resetting the cache
Enhancement Task
When we reset the cache through HTTP admin API or online recovery, the PD will rebalance the region and leader immediately. However, the region information that scheduling relies on is incomplete because of the gap in different region heartbeats. And the distribution of region won't change too much. So PD should wait for at least one round of region heartbeat.