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

cfg: fix wrong pd-ctl cmd (#19070) #19075

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions configure-placement-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ cat > rules.json <<EOF
}
]
EOF
pd-ctl config placement save --in=rules.json

» ./pd-ctl -u 127.0.0.1:2379 config placement-rules save --in=rules.json
Success!
```

The above operation writes `rule1` and `rule2` to PD. If a rule with the same `GroupID` + `ID` already exists in the system, this rule is overwritten.
Expand All @@ -206,7 +208,9 @@ cat > rules.json <<EOF
}
]
EOF
pd-ctl config placement save --in=rules.json

» ./pd-ctl -u 127.0.0.1:2379 config placement-rules save --in=rules.json
Success!
```

### Use pd-ctl to configure rule groups
Expand Down
Loading