From 80b4bf8f6a1d132f48a0d7d8e7f6b0e3b7eb314e Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 24 Oct 2014 16:39:37 +0800 Subject: [PATCH] update rocksdb config --- config/config.toml | 12 ++++++------ etc/ledis.conf | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config/config.toml b/config/config.toml index e18fc55..88f566b 100644 --- a/config/config.toml +++ b/config/config.toml @@ -58,26 +58,26 @@ max_open_files = 1024 # 0:no, 1:snappy, 2:zlib, 3:bz2, 4:lz4, 5:lz4hc compression = 0 -block_size = 32768 +block_size = 65536 write_buffer_size = 67108864 cache_size = 524288000 max_open_files = 1024 max_write_buffer_num = 2 min_write_buffer_number_to_merge = 1 num_levels = 7 -level0_file_num_compaction_trigger = 4 +level0_file_num_compaction_trigger = 8 level0_slowdown_writes_trigger = 16 level0_stop_writes_trigger = 64 -target_file_size_base = 33554432 +target_file_size_base = 67108864 target_file_size_multiplier = 1 -max_bytes_for_level_base = 33554432 -max_bytes_for_level_multiplier = 10 +max_bytes_for_level_base = 536870912 +max_bytes_for_level_multiplier = 8 disable_auto_compactions = false disable_data_sync = false use_fsync = false background_theads = 4 high_priority_background_threads = 1 -max_background_compactions = 1 +max_background_compactions = 3 max_background_flushes = 1 allow_os_buffer = true enable_statistics = false diff --git a/etc/ledis.conf b/etc/ledis.conf index e18fc55..88f566b 100644 --- a/etc/ledis.conf +++ b/etc/ledis.conf @@ -58,26 +58,26 @@ max_open_files = 1024 # 0:no, 1:snappy, 2:zlib, 3:bz2, 4:lz4, 5:lz4hc compression = 0 -block_size = 32768 +block_size = 65536 write_buffer_size = 67108864 cache_size = 524288000 max_open_files = 1024 max_write_buffer_num = 2 min_write_buffer_number_to_merge = 1 num_levels = 7 -level0_file_num_compaction_trigger = 4 +level0_file_num_compaction_trigger = 8 level0_slowdown_writes_trigger = 16 level0_stop_writes_trigger = 64 -target_file_size_base = 33554432 +target_file_size_base = 67108864 target_file_size_multiplier = 1 -max_bytes_for_level_base = 33554432 -max_bytes_for_level_multiplier = 10 +max_bytes_for_level_base = 536870912 +max_bytes_for_level_multiplier = 8 disable_auto_compactions = false disable_data_sync = false use_fsync = false background_theads = 4 high_priority_background_threads = 1 -max_background_compactions = 1 +max_background_compactions = 3 max_background_flushes = 1 allow_os_buffer = true enable_statistics = false