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

tools/pd-control: add more schedule options #796

Merged
merged 1 commit into from
Jul 9, 2018
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
20 changes: 20 additions & 0 deletions tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ export PD_ADDR=http://127.0.0.1:2379
"low-space-ratio": 0.8,
"high-space-ratio": 0.6,
"disable-raft-learner": "false",
"disable-remove-down-replica": "false",
"disable-make-up-offline-replica": "false",
"disable-make-up-replica": "false",
"disable-remove-extra-replica": "false",
"disable-location-replacement": "false",
"schedulers-v2": [
{
"type": "balance-region",
Expand Down Expand Up @@ -215,6 +220,21 @@ Replica 调度的开销较大,所以这个值不宜调得太大。
>> config set namespace ts2 region-schedule-limit 2 // 设置名为 ts2 的 namespace 最多同时进行 2 个 region 调度
```

`disable-remove-down-replica` 用于关闭自动删除 DownReplica 的特性。
当设置为 true 时,PD 不会自动清理宕机状态的副本。

`disable-make-up-offline-replica` 用于关闭迁移 OfflineReplica 的特性。
当设置为 true 时,PD 不会迁移下线状态的副本。

`disable-make-up-replica` 用于关闭补充副本的特性。
当设置为 true 时,PD 不会为副本数不足的 Region 补充副本。

`disable-remove-extra-replica` 用于关闭删除多余副本的特性。
当设置为 true 时,PD 不会为副本数过多的 Region 删除多余副本。

`disable-location-replacement` 用于关闭隔离级别检查。
当设置为 true 时,PD 不会通过调度来提升 Region 副本的隔离级别。

### config delete namespace \<name\> [\<option\>]

用于删除 namespace 的配置信息。
Expand Down