Skip to content

Commit

Permalink
cfg: fix wrong pd-ctl cmd (#19070) (#19075)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Oct 11, 2024
1 parent e99dbf5 commit f21a1dc
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit f21a1dc

Please sign in to comment.