kvproto
kvproto copied to clipboard
persist region leader
The purpose of this PR is that we want to persist the leader information on the PD side so that if the PDs are reloaded, it won't affect the leader distribution in the cluster with a large number of regions. Because the heartbeat may be not processed in time and there will be redundant scheduling. Besides, the region cache can get the leader ASAP.