tikv / tikv/pd

Load resource group will greatly affect availability of PD

Open
#9,335 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.