Skip to content

Commit

Permalink
TiKV configuration change 6.0 (#7915)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn committed Mar 29, 2022
1 parent c7c2ab0 commit 6637aef
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -823,13 +823,19 @@ Configuration items related to RocksDB
### `max-background-jobs`

+ The number of background threads in RocksDB. When you modify the size of the RocksDB thread pool, refer to [Performance tuning for TiKV thread pools](/tune-tikv-thread-performance.md#performance-tuning-for-tikv-thread-pools).
+ Default value: `8`
+ Default value:
+ When the number of CPU cores is 10, the default value is `9`.
+ When the number of CPU cores is 8, the default value is `7`.
+ When the number of CPU cores is `N`, the default value is `max(2, min(N - 1, 9))`.
+ Minimum value: `2`

### `max-background-flushes`

+ The maximum number of concurrent background memtable flush jobs
+ Default value: `2`
+ Default value:
+ When the number of CPU cores is 10, the default value is `3`.
+ When the number of CPU cores is 8, the default value is `2`.
+ When the number of CPU cores is `N`, the default value is `[(max-background-jobs + 3) / 4]`.
+ Minimum value: `1`

### `max-sub-compactions`
Expand Down Expand Up @@ -934,8 +940,8 @@ Configuration items related to RocksDB

### `enable-pipelined-write`

+ Enables or disables Pipelined Write
+ Default value: `true`
+ Controls whether to enable Pipelined Write. When this configuration is enabled, the previous Pipelined Write is used. When this configuration is disabled, the new Pipelined Commit mechanism is used.
+ Default value: `false`

### `bytes-per-sync`

Expand Down

0 comments on commit 6637aef

Please sign in to comment.