Skip to content

Commit

Permalink
update doc on wal-recovery-mode and use-direct-io-for-flush-and-compa…
Browse files Browse the repository at this point in the history
…ction (#6163)
  • Loading branch information
ekexium committed Aug 31, 2021
1 parent 2297e8c commit cd4fc92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,11 @@ Configuration items related to RocksDB
### `wal-recovery-mode`

+ WAL recovery mode
+ Optional values: `0` (`TolerateCorruptedTailRecords`), `1` (`AbsoluteConsistency`), `2` (`PointInTimeRecovery`), `3` (`SkipAnyCorruptedRecords`)
+ 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`
Expand Down Expand Up @@ -808,7 +812,7 @@ Configuration items related to RocksDB

### `use-direct-io-for-flush-and-compaction`

+ Determines whether to use `O_DIRECT` for both reads and writes in background flush and compactions
+ Determines whether to use `O_DIRECT` for both reads and writes in the background flush and compactions. The performance impact of this option: enabling `O_DIRECT` bypasses and prevents contamination of the OS buffer cache, but the subsequent file reads require re-reading the contents to the buffer cache.
+ Default value: `false`

### `rate-bytes-per-sec`
Expand Down

0 comments on commit cd4fc92

Please sign in to comment.