client-go
client-go copied to clipboard
Provide the persistence option for region cache
When a cluster starts from a cold state, it does not contain any region router information, which may cause a huge amount of GetRegion-like requests to the PD leader. To gain a quick recovery from the previous state and reduce the pressure that might be pushed on the PD leader, providing the persistence option for the region cache is a simple way to have an optimization on this scenario.