Skip to content

Commit

Permalink
tikv: enable async-io by setting raftstore.store-io-pool-size == 1 as…
Browse files Browse the repository at this point in the history
… default. (pingcap#16735)
  • Loading branch information
LykxSassinator authored Mar 20, 2024
1 parent 1e14467 commit 3d5a1cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ Configuration items related to Raftstore.
### `store-io-pool-size` <span class="version-mark">New in v5.3.0</span>

+ The allowable number of threads that process Raft I/O tasks, which is the size of the StoreWriter thread pool. When you modify the size of this thread pool, refer to [Performance tuning for TiKV thread pools](/tune-tikv-thread-performance.md#performance-tuning-for-tikv-thread-pools).
+ Default value: `0`
+ Default value: `1` (Before v8.0.0, the default value is `0`)
+ Minimum value: `0`

### `future-poll-size`
Expand Down
2 changes: 1 addition & 1 deletion tune-tikv-thread-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Starting from TiKV v5.0, all read requests use the unified thread pool for queri

* The Raftstore thread pool.

The Raftstore thread pool is the most complex thread pool in TiKV. The default size (configured by `raftstore.store-pool-size`) of this thread pool is `2`. For the StoreWriter thread pool, the default size (configured by `raftstore.store-io-pool-size`) is `0`.
The Raftstore thread pool is the most complex thread pool in TiKV. The default size (configured by `raftstore.store-pool-size`) of this thread pool is `2`. For the StoreWriter thread pool, the default size (configured by `raftstore.store-io-pool-size`) is `1`.

- When the size of the StoreWriter thread pool is 0, all write requests are written into RocksDB in the way of `fsync` by the Raftstore thread. In this case, it is recommended to tune the performance as follows:

Expand Down

0 comments on commit 3d5a1cb

Please sign in to comment.