Module mz_rocksdb_types::config::defaults
source · Expand description
The following are defaults (and default strings for LD parameters)
for RocksDBTuningParameters
.
Constants§
- 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.
- 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.
- 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
- The default max duration for retrying the retry-able errors in rocksdb.
- Default is 0, i.e. shrinking will be disabled
- Default is 10 minutes, from https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_stats_dump_period_sec
- Default is 10 minutes, from https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html#method.set_stats_persist_period_sec
- Not allowing stalls for write buffer manager. Only applicable if write buffer manager is enabled by other flags.