diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 550f7d0c93ff..8b88308a954f 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -782,6 +782,11 @@ Configuration items related to Raftstore. + Default value: `"9s"` + Minimum value: `0` +### `right-derive-when-split` + ++ Specifies the start key of the new Region when a Region is split. When this configuration item is set to `true`, the start key is the maximum split key. When this configuration item is set to `false`, the start key is the original Region's start key. ++ Default value: `true` + ### `merge-max-log-gap` + The maximum number of missing logs allowed when `merge` is performed @@ -874,7 +879,7 @@ Configuration items related to Raftstore. + Minimum value: `0` + Unit: second -## Coprocessor +## coprocessor Configuration items related to Coprocessor. @@ -940,7 +945,7 @@ Configuration items related to Coprocessor. + The interval at which TiKV reports bucket information to PD when `enable-region-bucket` is true. + Default value: `10s` -## RocksDB +## rocksdb Configuration items related to RocksDB @@ -1279,7 +1284,11 @@ Configuration items related to `rocksdb.defaultcf`, `rocksdb.writecf`, and `rock ### `compaction-pri` + The priority type of compaction -+ Optional values: `"by-compensated-size"`, `"oldest-largest-seq-first"`, `"oldest-smallest-seq-first"`, `"min-overlapping-ratio"` ++ Optional values: + - `"by-compensated-size"`: compact files in order of file size and large files are compacted with higher priority. + - `"oldest-largest-seq-first"`: prioritize compaction on files with the oldest update time. Use this value **only** when updating hot keys in small ranges. + - `"oldest-smallest-seq-first"`: prioritize compaction on files with ranges that are not compacted to the next level for a long time. If you randomly update hot keys across the key space, this value can slightly reduce write amplification. + - `"min-overlapping-ratio"`: prioritize compaction on files with a high overlap ratio. When a file is small in different levels (the result of `the file size in the next level` รท `the file size in this level` is small), TiKV compacts this file first. In many cases, this value can effectively reduce write amplification. + Default value for `defaultcf` and `writecf`: `"min-overlapping-ratio"` + Default value for `lockcf`: `"by-compensated-size"` @@ -1564,7 +1573,7 @@ Configuration items related to [encryption at rest](/encryption-at-rest.md) (TDE + Specifies the old master key when rotating the new master key. The configuration format is the same as that of `master-key`. To learn how to configure a master key, see [Encryption at Rest - Configure encryption](/encryption-at-rest.md#configure-encryption). -## `import` +## import Configuration items related to TiDB Lightning import and BR restore.