Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#17109
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
qiancai authored and ti-chi-bot committed Apr 11, 2024
1 parent 1b215f6 commit a9f4d0d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,44 @@ Configuration items related to RocksDB
+ Log levels of RocksDB
+ Default value: `"info"`

<<<<<<< HEAD
=======
### `write-buffer-flush-oldest-first` <span class="version-mark">New in v6.6.0</span>

> **Warning:**
>
> This feature is experimental. It is not recommended that you use it in the production environment. This feature might be changed or removed without prior notice. If you find a bug, you can report an [issue](https://github.com/pingcap/tidb/issues) on GitHub.
+ Specifies the flush strategy used when the memory usage of `memtable` of the current RocksDB reaches the threshold.
+ Default value: `false`
+ Value options:

+ `false`: `memtable` with the largest data volume is flushed to SST files.
+ `true`: The earliest `memtable` is flushed to SST files. This strategy can clear the `memtable` of cold data, which is suitable for scenarios with obvious cold and hot data.

### `write-buffer-limit` <span class="version-mark">New in v6.6.0</span>

> **Warning:**
>
> This feature is experimental. It is not recommended that you use it in the production environment. This feature might be changed or removed without prior notice. If you find a bug, you can report an [issue](https://github.com/pingcap/tidb/issues) on GitHub.
+ Specifies the total memory limit of `memtable` for all RocksDB instances in a single TiKV. `0` means no limit.
+ Default value:

+ When `storage.engine="raft-kv"`, the default value is `0`, which means no limit.
+ When `storage.engine="partitioned-raft-kv"`, the default value is 20% of the size of total system memory.

+ Unit: KiB|MiB|GiB

### `track-and-verify-wals-in-manifest` <span class="version-mark">New in v6.5.9 and v8.0.0</span>

+ Controls whether to record information about Write Ahead Log (WAL) files in the RocksDB MANIFEST file and whether to verify the integrity of WAL files during startup. For more information, see RocksDB [Track WAL in MANIFEST](https://github.com/facebook/rocksdb/wiki/Track-WAL-in-MANIFEST).
+ Default value: `true`
+ Value options:
+ `true`: records information about WAL files in the MANIFEST file and verifies the integrity of WAL files during startup.
+ `false`: does not record information about WAL files in the MANIFEST file and does not verify the integrity of WAL files during startup.

>>>>>>> ba4eacb05e (RocksDB: Add track-and-verify-wals-in-manifest desc (#17109))
## rocksdb.titan

Configuration items related to Titan.
Expand Down

0 comments on commit a9f4d0d

Please sign in to comment.