Add doc for tidb_executor_concurrency#3975
Conversation
Signed-off-by: niedhui <niedhui@gmail.com>
baa53ea to
098b758
Compare
|
|
||
| 对于从 5.0.0 之前的版本升级到 5.0.0 的系统, 如果用户对上述七个变量没有做过改动(即 `tidb_hash_join_concurrency` 值为5,其他值为4),则会迁移到使用 `tidb_executor_concurrency` 来统一管理并发度, 否则继续沿用之前的变量值对相应的算子做并发控制。 | ||
|
|
||
| ### tidb_index_lookup_concurrency |
|
|
||
| 默认值:5 | ||
|
|
||
| 这个变量用来设置 index lookup,index lookup join,hash join,hash aggregation,window,projection 算子的并发度。 |
There was a problem hiding this comment.
| 这个变量用来设置 index lookup,index lookup join,hash join,hash aggregation,window,projection 算子的并发度。 | |
| 这个变量用来统一设置各个 SQL 算子的并发度。 | |
| 包括: | |
| - index lookup | |
| - index lookup join | |
| - hash join | |
| - hash aggregation | |
| - window | |
| - projection |
| `tidb_executor_concurrency` 主要整合了之前的 `tidb_index_lookup_concurrency`,`tidb_index_lookup_join_concurrency`,`tidb_hash_join_concurrency`,`tidb_hashagg_partial_concurrency`,`tidb_hashagg_final_concurrency`,`tidb_projection_concurrency` 及 `tidb_window_concurrency` 这七个系统变量,方便管理。 | ||
|
|
||
| 用户仍可以对上述七个系统变量做单独修改(会有废弃警告),修改只影响单个算子,后续对 `tidb_executor_concurrency` 的修改也不会影响该算子。可以通过将其值设置为`-1`,还原成通过 `tidb_executor_concurrency` 来管理该算子的并发度。 |
|
|
||
| 用户仍可以对上述七个系统变量做单独修改(会有废弃警告),修改只影响单个算子,后续对 `tidb_executor_concurrency` 的修改也不会影响该算子。可以通过将其值设置为`-1`,还原成通过 `tidb_executor_concurrency` 来管理该算子的并发度。 | ||
|
|
||
| 对于从 5.0.0 之前的版本升级到 5.0.0 的系统, 如果用户对上述七个变量没有做过改动(即 `tidb_hash_join_concurrency` 值为5,其他值为4),则会迁移到使用 `tidb_executor_concurrency` 来统一管理并发度, 否则继续沿用之前的变量值对相应的算子做并发控制。 |
There was a problem hiding this comment.
现在最新版是 4.0.2 吧,接下来是 4.0.3。升级到 5.0.0 的系统 的表述会不会太早?
There was a problem hiding this comment.
这个不会cherry pick 就是针对5.0的。
6a505ff to
56d983d
Compare
|
|
||
| 这个变量用来设置 index lookup 操作的 batch 大小,AP 类应用适合较大的值,TP 类应用适合较小的值。 | ||
|
|
||
| ### tidb_executor_concurrency <span class="version-mark">从 v5.0 版本开始引入</span> |
Signed-off-by: niedhui <niedhui@gmail.com>
56d983d to
6e820e2
Compare
|
|
||
| 这个变量用来设置 index lookup 操作的并发度,AP 类应用适合较大的值,TP 类应用适合较小的值。 | ||
|
|
||
| 注意:从 5.0.0 版本开始,该变量已被废弃,请使用 [tidb_executor_concurrency](/tidb-specific-system-variables.md#tidb_executor_concurrency) 进行设置。 |
There was a problem hiding this comment.
- 目前 v5.0 连 beta 都没发,
已被废弃要不要换成将被废弃。 - 请采用如下 note 格式
- 同一文档内的标题锚点,无需
/tidb-specific-system-variables.md部分
| 注意:从 5.0.0 版本开始,该变量已被废弃,请使用 [tidb_executor_concurrency](/tidb-specific-system-variables.md#tidb_executor_concurrency) 进行设置。 | |
| > **注意:** | |
| > | |
| > 从 5.0.0 版本开始,该变量将被废弃,请使用 [tidb_executor_concurrency](#tidb_executor_concurrency) 进行设置。 |
Signed-off-by: niedhui <niedhui@gmail.com>
|
@TomShawn Would you please help resolve the conflict? Thanks! |
Conflict resolved, PTAL |
| - 默认值:20000 | ||
| - 这个变量用来设置 index lookup 操作的 batch 大小,AP 类应用适合较大的值,TP 类应用适合较小的值。 | ||
|
|
||
| ### `tidb_executor_concurrency` <span class="version-mark">从 v5.0 版本开始引入</span> |
There was a problem hiding this comment.
当前 5.0 还没有发布,文档中就出现 5.0 不太合适
|
Let's hold this PR before the release of 5.0 |
|
@SunRunAway, @TomShawn, @scsldb, @lilin90, PTAL. |
1 similar comment
|
@SunRunAway, @TomShawn, @scsldb, @lilin90, PTAL. |
|
@XuHuaiyu PTAL |
|
@SunRunAway, @TomShawn, @scsldb, @lilin90, PTAL. |
|
Can we please merge + translate this? It is an important change, with no user documentation so far. |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-5.0 in PR #5298 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: niedhui <niedhui@gmail.com>
What is changed, added or deleted? (Required)
Add docs for the new system variable,
tidb_executor_concurrencyWhich TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?