Create a gist now

Instantly share code, notes, and snippets.

rocksdb_max_open_files=-1
rocksdb_max_background_compactions=16
rocksdb_max_background_flushes=4
rocksdb_max_total_wal_size=4G
rocksdb_wal_dir=/txlogs/myrocks
rocksdb_block_size=8192
rocksdb_block_cache_size=64G
rocksdb_table_cache_numshardbits=6
rocksdb_write_sync=0
# rate limiter
rocksdb_bytes_per_sync=4194304
rocksdb_wal_bytes_per_sync=4194304
# rocksdb_rate_limiter_bytes_per_sec=41943040 #40MB/s if running 4x. If running 1x, you can set ~200MB or even more.
# triggering compaction if there are many sequential deletes
rocksdb_compaction_sequential_deletes=2000
rocksdb_default_cf_options=write_buffer_size=128m;target_file_size_base=32m;max_bytes_for_level_base=512m;level0_file_num_compaction_trigger=4;level0_slowdown_writes_trigger=10;level0_stop_writes_trigger=15;max_write_buffer_number=4;compression_per_level=kNoCompression:kNoCompression:kNoCompression:kZlibCompression:kZlibCompression:kZlibCompression:kZlibCompression;compression_opts=-14:1:0;block_based_table_factory={cache_index_and_filter_blocks=1;filter_policy=bloomfilter:10:false;whole_key_filtering=0};prefix_extractor=capped:20;level_compaction_dynamic_level_bytes=true;optimize_filters_for_hits=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment