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

Add store cancel-delete command in pd-ctl #9595

Merged
merged 4 commits into from
May 26, 2022
Merged
Changes from 2 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
14 changes: 11 additions & 3 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ Encoding 格式示例:
>> scheduler config balance-hot-region-scheduler set enable-for-tiflash true
```

### `store [delete | label | weight | remove-tombstone | limit ] <store_id> [--jq="<query string>"]`
### `store [delete | cancel-delete | label | weight | remove-tombstone | limit ] <store_id> [--jq="<query string>"]`

用于显示 store 信息或者删除指定 store。使用 jq 格式化输出请参考 [jq 格式化 json 输出示例](#jq-格式化-json-输出示例)。示例如下。

Expand Down Expand Up @@ -1251,9 +1251,17 @@ Encoding 格式示例:
>> store delete 1
```

撤销使用 store delete 下线的处于 Offline 状态的 store,Tombstone 状态的 store 无法被撤销,如撤销下线 store id 为 1 的 store:
rleungx marked this conversation as resolved.
Show resolved Hide resolved

{{< copyable "" >}}

```bash
>> store cancel-delete 1
```
......
```

> **注意:**
>
> 若下线过程中切换了 PD leader,需要手动修改 store limit
rleungx marked this conversation as resolved.
Show resolved Hide resolved

设置 store id 为 1 的 store 的键为 "zone" 的 label 的值为 "cn":

Expand Down