Skip to content

Commit

Permalink
cfg: fix wrong pd-ctl cmd (#18758) (#18778)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Oct 11, 2024
1 parent 88bbb24 commit d25dfc7
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 @@ -192,7 +192,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!
```

以上操作会将 rule1、rule2 两条规则写入 PD,如果系统中已经存在 GroupID+ID 相同的规则,则会覆盖该规则。
Expand All @@ -210,7 +212,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!
```

### 使用 pd-ctl 设置规则分组
Expand Down

0 comments on commit d25dfc7

Please sign in to comment.