Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch the placement's scheduling state from PD #28199

Closed
Tracked by #18030
lcwangchao opened this issue Sep 18, 2021 · 0 comments · Fixed by #29251
Closed
Tracked by #18030

Fetch the placement's scheduling state from PD #28199

lcwangchao opened this issue Sep 18, 2021 · 0 comments · Fixed by #29251
Assignees

Comments

@lcwangchao
Copy link
Collaborator

lcwangchao commented Sep 18, 2021

The SHOW PLACEMENT has a result column named Scheduling_state . Unfortunately, PD does not provide any HTTP API to get the scheduling state for the specified table/partition.

PD have a method IsRegionReplicated can make it. It should be easy to export it as a HTTP API.

https://github.com/tikv/pd/blob/fd3fc281e22681e4de48407f0b48a1a5da04d4d3/server/schedule/opt/healthy.go#L60-L68

After it, we can compute the scheduling state for each table/partition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants