Skip to content

Commit

Permalink
tikv config: align with Chinese (#12648) (#12752)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Mar 6, 2023
1 parent 1ba1129 commit 5dc9a30
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tikv-configuration-file.md
Expand Up @@ -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
Expand Down Expand Up @@ -874,7 +879,7 @@ Configuration items related to Raftstore.
+ Minimum value: `0`
+ Unit: second

## Coprocessor
## coprocessor

Configuration items related to Coprocessor.

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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"`

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 5dc9a30

Please sign in to comment.