Load resource group will greatly affect availability of PD
Open
component/resource-control
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
Currently, we need to load the resource group meta before the leader is ready to serve. If there are thousands of keyspaces, once the leader is changed, we must wait a long time before the resource group is ready. It's unreasonable. We should initialize the resource group meta asynchronously.
Some context related to the issue:
https://github.com/tikv/pd/blob/fa843982dd03f6abd640a01d4695e8e93d34dcc8/server/server.go#L1716-L1721
https://github.com/tikv/pd/blob/fa843982dd03f6abd640a01d4695e8e93d34dcc8/pkg/mcs/resourcemanager/server/manager.go#L128-L156
Contributor guide
Assessment
This issue has not been assessed yet.