Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compacting files to different temperatures in FIFO compaction #11428

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clarify flush output temperature.
cbi42 committed May 10, 2023
commit b18ebf28c4b2d4997c4fef127ea01ab6f272fe8e
9 changes: 6 additions & 3 deletions include/rocksdb/advanced_options.h
Original file line number Diff line number Diff line change
@@ -229,11 +229,14 @@ struct CompactionOptionsFIFO {
// Age (in seconds) threshold for different file temperatures.
// When not empty, each element specifies an age threshold `age` and a
// temperature such that if all the data in a file is older than `age`,
// RocksDB will compact the file to the specified `temperature`. By default,
// all file has temperature kUnknown. So only temperatures other than
// kUnknown needs to be specified.
// RocksDB will compact the file to the specified `temperature`.
//
// Note:
// - Flushed files will always have temperature kUnknown.
// - Compaction output files will have temperature kUnknown by default, so
// only temperatures other than kUnknown needs to be specified.
// - The elements should be in increasing order with respect to `age` field.
//
// Dynamically changeable through SetOptions() API, e.g.,
// SetOptions("compaction_options_fifo",
// "{file_temperature_age_thresholds={