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

pd-control: add new config of balance-hot-region-scheduler #6835

Merged
merged 5 commits into from
Aug 11, 2021
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
Prev Previous commit
Next Next commit
address comment
Signed-off-by: HunDunDM <hundundm@gmail.com>
  • Loading branch information
HunDunDM committed Aug 11, 2021
commit 113134a5b83bfc77614b1c35abd881dbb1610a80
6 changes: 3 additions & 3 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -1075,19 +1075,19 @@ Encoding 格式示例:
>> scheduler config balance-hot-region-scheduler set src-tolerance-ratio 1.1
```

- `read-priorities`、`write-leader-priorities`、`write-peer-priorities` 用于控制处理不同类型的热点时,优先均衡的第一维度和第二维度。对于 `read` 和 `write-leader` 类型的热点,可选的维度有 `query`、`byte` 和 `key`。对于 `write-peer` 类型的热点,可选的维度有 `byte` 和 `key`。若集群未全部升级到 v5.2 及以上版本时,它们不会生效。通常用户不需要修改这些配置项。
- `read-priorities`、`write-leader-priorities`、`write-peer-priorities` 用于控制处理不同类型的热点时,优先均衡的第一维度和第二维度。对于 `read` 和 `write-leader` 类型的热点,可选的维度有 `query`、`byte` 和 `key`。对于 `write-peer` 类型的热点,可选的维度有 `byte` 和 `key`。若集群组件未全部升级到 v5.2 及以上版本,这些配置不会生效,固定使用兼容配置。通常用户不需要修改这些配置项。

```bash
>> scheduler config balance-hot-region-scheduler set read-priorities query,byte
```

- `strict-picking-store` 是控制热点调度搜索空间的开关,打开时会在保证稳定性的前提下进行热点调度。通常为打开,关闭可能会导致第二维度的均衡度降低。通常用户不需要修改这个配置项。
- `strict-picking-store` 是控制热点调度搜索空间的开关,打开时会在保证稳定性的前提下进行热点调度。通常为打开,关闭后只保证第一优先级维度的均衡性,可能会导致其他维度的均衡度降低。通常用户不需要修改这个配置项。

```bash
>> scheduler config balance-hot-region-scheduler set strict-picking-store true
```

- `enable-for-tiflash` 是控制热点调度是否对 TiFlash 生效的开关。通常为打开,关闭后将不会产生 TiFlash 之间的热点调度
- `enable-for-tiflash` 是控制热点调度是否对 TiFlash 生效的开关。通常为打开,关闭后将不会产生 TiFlash 实例之间的热点调度

```bash
>> scheduler config balance-hot-region-scheduler set enable-for-tiflash true
Expand Down