Skip to content

Commit

Permalink
v7.5.5: introduce tidb_ddl_reorg_max_write_speed (#19282) (#19425)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 31, 2024
1 parent d7a6c92 commit b127b16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion releases/release-8.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ TiDB 8.5.0 为长期支持版本 (Long-Term Support Release, LTS)。
| 变量名 | 修改类型 | 描述 |
|--------|------------------------------|------|
| [`tidb_enable_fast_create_table`](/system-variables.md#tidb_enable_fast_create_table-从-v800-版本开始引入) | 修改 | 经进一步的测试后,默认值从 `OFF` 修改为 `ON`,即默认开启 [TiDB 加速建表](/accelerated-table-creation.md)|
| [`tidb_ddl_reorg_max_write_speed`](/system-variables.md#tidb_ddl_reorg_max_write_speed-从-v850-版本开始引入) | 新增 | 限制每个 TiKV 节点写入的带宽,仅在开启添加索引加速功能时生效(由变量 [`tidb_ddl_enable_fast_reorg`](/system-variables.md#tidb_ddl_enable_fast_reorg-从-v630-版本开始引入) 控制)。例如,当该值设置为 `200MiB` 时,最大写入速度限制为 200 MiB/s。 |
| [`tidb_ddl_reorg_max_write_speed`](/system-variables.md#tidb_ddl_reorg_max_write_speed-从-v755-和-v850-版本开始引入) | 新增 | 限制每个 TiKV 节点写入的带宽,仅在开启添加索引加速功能时生效(由变量 [`tidb_ddl_enable_fast_reorg`](/system-variables.md#tidb_ddl_enable_fast_reorg-从-v630-版本开始引入) 控制)。例如,当该值设置为 `200MiB` 时,最大写入速度限制为 200 MiB/s。 |

### 配置参数

Expand Down
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-admin-alter-ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ADMIN ALTER DDL JOBS 101 THREAD = 8;
- `ADD INDEX`
- `THREAD`:并发度,初始值由系统变量 `tidb_ddl_reorg_worker_cnt` 设置。
- `BATCH_SIZE`:批大小,初始值由系统变量 [`tidb_ddl_reorg_batch_size`](/system-variables.md#tidb_ddl_reorg_batch_size) 设置。
- `MAX_WRITE_SPEED`:向每个 TiKV 导入索引记录时的最大带宽限制,初始值由系统变量 [`tidb_ddl_reorg_max_write_speed`](/system-variables.md#tidb_ddl_reorg_max_write_speed-从-v850-版本开始引入) 设置。
- `MAX_WRITE_SPEED`:向每个 TiKV 导入索引记录时的最大带宽限制,初始值由系统变量 [`tidb_ddl_reorg_max_write_speed`](/system-variables.md#tidb_ddl_reorg_max_write_speed-从-v755-和-v850-版本开始引入) 设置。

以上设置,当前仅对关闭 [`tidb_enable_dist_task`](/system-variables.md#tidb_enable_dist_task-从-v710-版本开始引入) 后,提交并运行中的 `ADD INDEX` 的作业生效。

Expand Down
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1;
- 可选值:`PRIORITY_LOW``PRIORITY_NORMAL``PRIORITY_HIGH`
- 这个变量用来设置 `ADD INDEX` 操作 `re-organize` 阶段的执行优先级,可设置为 `PRIORITY_LOW`/`PRIORITY_NORMAL`/`PRIORITY_HIGH`

### `tidb_ddl_reorg_max_write_speed` <span class="version-mark">从 v8.5.0 版本开始引入</span>
### `tidb_ddl_reorg_max_write_speed` <span class="version-mark">从 v7.5.5 和 v8.5.0 版本开始引入</span>

- 作用域:GLOBAL
- 是否持久化到集群:是
Expand Down

0 comments on commit b127b16

Please sign in to comment.