Module defaults

Source
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.