Skip to content

Commit

Permalink
update doc on wal-recovery-mode
Browse files Browse the repository at this point in the history
Signed-off-by: ekexium <ekexium@gmail.com>
  • Loading branch information
ekexium committed Aug 30, 2021
1 parent 479dc41 commit e45db36
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,10 @@ Configuration items related to RocksDB

+ WAL recovery mode
+ Optional values: `0` (`TolerateCorruptedTailRecords`), `1` (`AbsoluteConsistency`), `2` (`PointInTimeRecovery`), `3` (`SkipAnyCorruptedRecords`)
+ `0` (`TolerateCorruptedTailRecords`): tolerate incomplete record in trailing data on all logs
+ `1` (`AbsoluteConsistency`): we don't expect to find any corruption in the WAL
+ `2` (`PointInTimeRecovery`): recover to point-in-time consistency
+ `3` (`SkipAnyCorruptedRecords`): recovery after a disaster
+ `0` (`TolerateCorruptedTailRecords`): tolerate and discard incomplete record in trailing data on all logs
+ `1` (`AbsoluteConsistency`): abandon the recovery when corrupted logs are found
+ `2` (`PointInTimeRecovery`): recover sequentially until the first corrupted log is encoutered
+ `3` (`SkipAnyCorruptedRecords`): recovery after a disaster. Corrupted records are skipped
+ Default value: `2`
+ Minimum value: `0`
+ Maximum value: `3`
Expand Down Expand Up @@ -771,8 +771,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.
+ In general enabling it can degrade performance.
+ Determines whether the O_DIRECT flag is set for background flush or compaction reads and writes. The performance impact of this option: turning on O_DIRECT bypasses and prevents contamination of the OS buffer cache, but 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 e45db36

Please sign in to comment.