Expand description
The following are defaults (and default strings for LD parameters)
for RocksDBTuningParameters
.
Constants§
- DEFAULT_
AUTO_ SPILL_ MEMORY_ THRESHOLD - The default for spilling from memory to rocksdb is 2 write buffers. Some initial tests found that 2 write buffers were the minimum memory usage of rocksdb when processing small amounts of data.
- DEFAULT_
BATCH_ SIZE - A reasonable default batch size for gets and puts in RocksDB. Based on advice here: https://github.com/facebook/rocksdb/wiki/RocksDB-FAQ. Based on our testing we are using 20 times that.
- DEFAULT_
BOTTOMMOST_ COMPRESSION_ TYPE - DEFAULT_
COMPACTION_ STYLE - DEFAULT_
COMPRESSION_ TYPE - DEFAULT_
LEVEL_ COMPACTION_ DYNAMIC_ LEVEL_ BYTES - DEFAULT_
OPTIMIZE_ COMPACTION_ MEMTABLE_ BUDGET - From here: https://github.com/facebook/rocksdb/blob/main/include/rocksdb/options.h#L102 And then setting it to 1/3rd from our testing in production
- DEFAULT_
PARALLELISM - DEFAULT_
RETRY_ DURATION - The default max duration for retrying the retry-able errors in rocksdb.
- DEFAULT_
SHRINK_ BUFFERS_ BY_ RATIO - Default is 0, i.e. shrinking will be disabled
- DEFAULT_
STATS_ LOG_ INTERVAL_ S - Default is 10 minutes, from https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_stats_dump_period_sec
- DEFAULT_
STATS_ PERSIST_ INTERVAL_ S - Default is 10 minutes, from https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_stats_persist_period_sec
- DEFAULT_
UNIVERSAL_ COMPACTION_ RATIO - From here: https://docs.rs/rocksdb/latest/rocksdb/struct.UniversalCompactOptions.html
- DEFAULT_
WRITE_ BUFFER_ MANAGER_ ALLOW_ STALL - Not allowing stalls for write buffer manager. Only applicable if write buffer manager is enabled by other flags.