Skip to content

Commit

Permalink
tidb_distsql_scan_concurrency Add change description
Browse files Browse the repository at this point in the history
tidb_distsql_scan_concurrency Add change description 
 pingcap/tidb#19886
  • Loading branch information
glkappe authored Dec 7, 2020
1 parent 1e96ad9 commit 5517fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10;
- 作用域:SESSION | GLOBAL
- 默认值:15
- 这个变量用来设置 scan 操作的并发度。
- `v4.0.6` 及其后面版本,该系统变量变更为 `tidb_executor_concurrency`
- AP 类应用适合较大的值,TP 类应用适合较小的值。对于 AP 类应用,最大值建议不要超过所有 TiKV 节点的 CPU 核数。
- 若表的分区较多可以适当调小该参数,避免 TiKV OOM。

### `tidb_dml_batch_size`

Expand Down Expand Up @@ -972,4 +974,4 @@ explain select * from t where age=5;
- 作用域:SESSION
- 默认值:0.8
- TiDB 内存使用占总内存的比例超过一定阈值时会报警。该功能的详细介绍和使用方法可以参考 [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio)。
- 该变量的初始值可通过 [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio) 进行配置。
- 该变量的初始值可通过 [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio) 进行配置。

0 comments on commit 5517fad

Please sign in to comment.