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 #18758

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
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 @@ -193,7 +193,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 @@ -211,7 +213,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=a.json
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
Success!
```

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