Skip to content

Commit

Permalink
Update tikv rocksdb enum type configurations (#7376) (#7820)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Mar 10, 2022
1 parent 183f75f commit 6e7bb0b
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,14 +828,12 @@ Configuration items related to RocksDB
### `wal-recovery-mode`

+ WAL recovery mode
+ Value options: `0`, `1`, `2`, `3`
+ `0` (`TolerateCorruptedTailRecords`): tolerates and discards the records that have incomplete trailing data on all logs.
+ `1` (`AbsoluteConsistency`): abandons recovery when corrupted logs are found.
+ `2` (`PointInTimeRecovery`): recovers log sequentially until the first corrupted log is encountered.
+ `3` (`SkipAnyCorruptedRecords`): recovery after a disaster. Corrupted records are skipped
+ Default value: `2`
+ Minimum value: `0`
+ Maximum value: `3`
+ Optional values:
+ `"tolerate-corrupted-tail-records"`: tolerates and discards the records that have incomplete trailing data on all logs
+ `"absolute-consistency"`: abandons recovery when corrupted logs are found
+ `"point-in-time"`: recovers logs sequentially until the first corrupted log is encountered
+ `"skip-any-corrupted-records"`: post-disaster recovery. The data is recovered as much as possible, and corrupted records are skipped.
+ Default value: `"point-in-time"`

### `wal-dir`

Expand Down Expand Up @@ -895,10 +893,8 @@ Configuration items related to RocksDB
### `rate-limiter-mode`

+ RocksDB's compaction rate limiter mode
+ Optional values: `1` (`ReadOnly`), `2` (`WriteOnly`), `3` (`AllIo`)
+ Default value: `2`
+ Minimum value: `1`
+ Maximum value: `3`
+ Optional values: `"read-only"`, `"write-only"`, `"all-io"`
+ Default value: `"write-only"`

### `rate-limiter-auto-tuned` <span class="version-mark">New in v5.0</span>

Expand Down Expand Up @@ -1121,9 +1117,9 @@ Configuration items related to `rocksdb.defaultcf`, `rocksdb.writecf`, and `rock
### `compaction-pri`

+ The priority type of compaction
+ Optional values: `0` (`ByCompensatedSize`), `1` (`OldestLargestSeqFirst`), `2` (`OldestSmallestSeqFirst`), `3` (`MinOverlappingRatio`)
+ Default value for `defaultcf` and `writecf`: `3`
+ Default value for `lockcf`: `0`
+ Optional values: `"by-compensated-size"`, `"oldest-largest-seq-first"`, `"oldest-smallest-seq-first"`, `"min-overlapping-ratio"`
+ Default value for `defaultcf` and `writecf`: `"min-overlapping-ratio"`
+ Default value for `lockcf`: `"by-compensated-size"`

### `dynamic-level-bytes`

Expand All @@ -1143,7 +1139,7 @@ Configuration items related to `rocksdb.defaultcf`, `rocksdb.writecf`, and `rock
### `compaction-style`

+ Compaction method
+ Optional values: `"level"`, `"universal"`
+ Optional values: `"level"`, `"universal"`, `"fifo"`
+ Default value: `"level"`

### `disable-auto-compactions`
Expand Down

0 comments on commit 6e7bb0b

Please sign in to comment.