Skip to content

Commit

Permalink
tikv: add missing config threshold for some online config (pingcap#8784)
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv authored Mar 30, 2022
1 parent 7dafe58 commit 5d2dbc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dynamic-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ show warnings;
| raftstore.cleanup-import-sst-interval | 触发检查过期 SST 文件的时间间隔 |
| raftstore.local-read-batch-size | 一轮处理读请求的最大个数 |
| raftstore.hibernate-timeout | 启动后进入静默状态前需要等待的最短时间,在该时间段内不会进入静默状态(未 release)|
| raftstore.apply-pool-size | 处理数据落盘的线程池中线程的数量,即 Apply 线程池大小 |
| raftstore.apply-pool-size | 处理把数据落盘至磁盘的线程池中线程的数量,即 Apply 线程池大小 |
| raftstore.store-pool-size | 处理 Raft 的线程池中线程的数量,即 Raftstore 线程池的大小 |
| raftstore.apply-max-batch-size | Raft 状态机由 BatchSystem 批量执行数据写入请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。 |
| raftstore.store-max-batch-size | Raft 状态机由 BatchSystem 批量执行日志落盘请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。 |
| raftstore.store-max-batch-size | Raft 状态机由 BatchSystem 批量执行把日志落盘至磁盘的请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。 |
| readpool.unified.max-thread-count | 统一处理读请求的线程池最多的线程数量,即 UnifyReadPool 线程池大小 |
| coprocessor.split-region-on-table | 开启按 table 分裂 Region 的开关 |
| coprocessor.batch-split-limit | 批量分裂 Region 的阈值 |
Expand Down
11 changes: 6 additions & 5 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ TiKV 配置文件比命令行参数支持更多的选项。你可以在 [etc/con

+ Scheduler 线程池中线程的数量。Scheduler 线程主要负责写入之前的事务一致性检查工作。如果 CPU 核心数量大于等于 16,默认为 8;否则默认为 4。调整 scheduler 线程池的大小时,请参考 [TiKV 线程池调优](/tune-tikv-thread-performance.md#tikv-线程池调优)
+ 默认值:4
+ 最小值:1
+ 可调整范围:`[1, MAX(4, CPU)]`。其中,`MAX(4, CPU)` 表示:如果 CPU 核心数量小于 `4`,取 `4`;如果 CPU 核心数量大于 `4`,则取 CPU 核心数量。

### `scheduler-pending-write-threshold`

Expand Down Expand Up @@ -529,6 +529,7 @@ raftstore 相关的配置项。
+ 待确认的日志个数,如果超过这个数量,Raft 状态机会减缓发送日志的速度。
+ 默认值:256
+ 最小值:大于 0
+ 最大值: 16384

### `raft-entry-max-size`

Expand Down Expand Up @@ -754,13 +755,13 @@ raftstore 相关的配置项。

### `apply-pool-size`

+ 处理数据落盘的线程池中线程的数量,即 Apply 线程池的大小。调整该线程池的大小时,请参考 [TiKV 线程池调优](/tune-tikv-thread-performance.md#tikv-线程池调优)
+ Apply 线程池负责把数据落盘至磁盘。该配置项为 Apply 线程池中线程的数量,即 Apply 线程池的大小。调整 Apply 线程池的大小时,请参考 [TiKV 线程池调优](/tune-tikv-thread-performance.md#tikv-线程池调优)
+ 默认值:2
+ 最小值:大于 0
+ 可调整范围:[1, CPU * 10]

### `store-max-batch-size`

+ Raft 状态机由 BatchSystem 批量执行日志落盘请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。
+ Raft 状态机由 BatchSystem 批量执行把日志落盘至磁盘的请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。
+ 如果开启 `hibernate-regions`,默认值为 256;如果关闭 `hibernate-regions`,默认值为 1024
+ 最小值:大于 0
+ 最大值: 10240
Expand All @@ -769,7 +770,7 @@ raftstore 相关的配置项。

+ 表示处理 Raft 的线程池中线程的数量,即 Raftstore 线程池的大小。调整该线程池的大小时,请参考 [TiKV 线程池调优](/tune-tikv-thread-performance.md#tikv-线程池调优)
+ 默认值:2
+ 最小值:大于 0
+ 可调整范围:[1, CPU * 10]

### `store-io-pool-size` <span class="version-mark">从 v5.3.0 版本开始引入</span>

Expand Down

0 comments on commit 5d2dbc3

Please sign in to comment.