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

Supports show origin placement rules #46617

Open
Tracked by #45384
nolouch opened this issue Sep 4, 2023 · 0 comments · May be fixed by #46750
Open
Tracked by #45384

Supports show origin placement rules #46617

nolouch opened this issue Sep 4, 2023 · 0 comments · May be fixed by #46750
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@nolouch
Copy link
Member

nolouch commented Sep 4, 2023

Feature Request

Is your feature request related to a problem? Please describe:

Currently, we can only show the placement policy using the following syntax, it's from the tikv meta:

SHOW PLACEMENT;
SHOW PLACEMENT FOR DATABASE test;
SHOW PLACEMENT FOR TABLE t1;

sometimes, we want to check the origin rules that are true on the pd side to diagnose.

Describe the feature you'd like:

add syntax like:

SHOW PLACEMENT format='raw' ;
SHOW PLACEMENT FOR DATABASE test format='tidb_json' ;
SHOW PLACEMENT FOR TABLE t1 format='tidb_json' ;

which will show the origin rules that get from PD. which is more convenient than using pd-ctl.

@nolouch nolouch added the type/enhancement The issue or PR belongs to an enhancement. label Sep 4, 2023
@HuSharp HuSharp linked a pull request Sep 7, 2023 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant