rocksdb.dir |
"/tmp/rocksdb" |
The directory to save data |
rocksdb.allow_concurrent_memtable_writes |
true |
Sets whether to allow concurrent memtable writes |
rocksdb.allow_mmap_reads |
false |
Enable/Disable mmap reads for reading sst tables |
rocksdb.allow_mmap_writes |
false |
Enable/Disable mmap writes for writing sst tables |
rocksdb.arena_block_size |
0(write_buffer_size / 8) |
Sets the size of one block in arena memory allocation |
rocksdb.db_write_buffer_size |
0(disable) |
Sets the amount of data to build up in memtables across all column families before writing to disk |
rocksdb.hard_pending_compaction_bytes_limit |
256GB |
Sets the bytes threshold at which all writes are stopped if estimated bytes needed to be compaction exceed this threshold |
rocksdb.level0_file_num_compaction_trigger |
4 |
Sets the number of files to trigger level-0 compaction |
rocksdb.level0_slowdown_writes_trigger |
20 |
Sets the soft limit on number of level-0 files |
rocksdb.level0_stop_writes_trigger |
36 |
Sets the maximum number of level-0 files. We stop writes at this point |
rocksdb.max_bytes_for_level_base |
256MB |
Sets the maximum total data size for base level |
rocksdb.max_bytes_for_level_multiplier |
10 |
Sets the max Bytes for level multiplier |
rocksdb.max_total_wal_size |
0([sum of all write_buffer_size * max_write_buffer_number] * 4) |
Sets the maximum total wal size in bytes. Once write-ahead logs exceed this size, we will start forcing the flush of column families whose memtables are backed by the oldest live WAL file (i.e. the ones that are causing all the space amplification) |
rocksdb.memtable_huge_page_size |
0 |
Sets the page size for huge page for arena used by the memtable |
rocksdb.num_levels |
7 |
Sets the number of levels for this database |
rocksdb.use_direct_reads |
false |
Enable/Disable direct I/O mode (O_DIRECT) for reads |
rocksdb.use_fsync |
false |
Enable/Disable fsync |
rocksdb.write_buffer_size |
64MB |
Sets the amount of data to build up in memory (backed by an unsorted log on disk) before converting to a sorted on-disk file |
rocksdb.max_write_buffer_number |
2 |
Sets the maximum number of write buffers that are built up in memory |
rocksdb.max_background_jobs |
2 |
Sets maximum number of concurrent background jobs (compactions and flushes) |
rocksdb.block_size |
4KB |
Sets the approximate size of user data packed per block. Note that the block size specified here corresponds opts uncompressed data. The actual size of the unit read from disk may be smaller if compression is enabled |
rocksdb.block_size_deviation |
10 |
Sets the block size deviation. This is used opts close a block before it reaches the configured 'block_size'. If the percentage of free space in the current block is less than this specified number and adding a new record opts the block will exceed the configured block size, then this block will be closed and the new record will be written opts the next block |
rocksdb.cache_index_and_filter_blocks |
false |
Indicating if we'd put index/filter blocks to the block cache. If not specified, each "table reader" object will pre-load index/filter block during table initialization |
rocksdb.no_block_cache |
false |
Specify whether block cache should be used or not |
rocksdb.pin_l0_filter_and_index_blocks_in_cache |
false |
Sets cache_index_and_filter_blocks. If is true and the below is true (hash_index_allow_collision), then filter and index blocks are stored in the cache, but a reference is held in the "table reader" object so the blocks are pinned and only evicted from cache when the table reader is freed |
rocksdb.whole_key_filtering |
true |
Specify if whole keys in the filter (not just prefixes) should be placed. This must generally be true for gets opts be efficient |
rocksdb.block_restart_interval |
16 |
Sets the number of keys between restart points for delta encoding of keys. This parameter can be changed dynamically |
rocksdb.filter_policy |
nil |
Sets the filter policy opts reduce disk reads. Many applications will benefit from passing the result of NewBloomFilterPolicy() here |
rocksdb.index_type |
kBinarySearch |
Sets the index type used for this table. kBinarySearch: A space efficient index block that is optimized for binary-search-based index. kHashSearch: The hash index, if enabled, will do the hash lookup when Options.prefix_extractor is provided. kTwoLevelIndexSearch: A two-level index implementation. Both levels are binary search indexes |
rocksdb.block_align |
false |
Enable/Disable align data blocks on lesser of page size and block size |