From f39f5cdef6ae1c789c1ff091b6e14751c1596ada Mon Sep 17 00:00:00 2001 From: siddontang Date: Mon, 10 Nov 2014 17:22:18 +0800 Subject: [PATCH] adjust default 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 f121543..9f1f5f7 100644 --- a/config/config.toml +++ b/config/config.toml @@ -72,11 +72,11 @@ max_open_files = 1024 # 0:no, 1:snappy, 2:zlib, 3:bz2, 4:lz4, 5:lz4hc compression = 0 block_size = 65536 -write_buffer_size = 67108864 -cache_size = 524288000 +write_buffer_size = 134217728 +cache_size = 1073741824 max_open_files = 1024 -max_write_buffer_num = 2 -min_write_buffer_number_to_merge = 1 +max_write_buffer_num = 6 +min_write_buffer_number_to_merge = 2 num_levels = 7 level0_file_num_compaction_trigger = 8 level0_slowdown_writes_trigger = 16 @@ -88,9 +88,9 @@ max_bytes_for_level_multiplier = 8 disable_auto_compactions = false disable_data_sync = false use_fsync = false -background_theads = 4 +background_theads = 16 high_priority_background_threads = 1 -max_background_compactions = 3 +max_background_compactions = 15 max_background_flushes = 1 allow_os_buffer = true enable_statistics = false diff --git a/etc/ledis.conf b/etc/ledis.conf index f121543..9f1f5f7 100644 --- a/etc/ledis.conf +++ b/etc/ledis.conf @@ -72,11 +72,11 @@ max_open_files = 1024 # 0:no, 1:snappy, 2:zlib, 3:bz2, 4:lz4, 5:lz4hc compression = 0 block_size = 65536 -write_buffer_size = 67108864 -cache_size = 524288000 +write_buffer_size = 134217728 +cache_size = 1073741824 max_open_files = 1024 -max_write_buffer_num = 2 -min_write_buffer_number_to_merge = 1 +max_write_buffer_num = 6 +min_write_buffer_number_to_merge = 2 num_levels = 7 level0_file_num_compaction_trigger = 8 level0_slowdown_writes_trigger = 16 @@ -88,9 +88,9 @@ max_bytes_for_level_multiplier = 8 disable_auto_compactions = false disable_data_sync = false use_fsync = false -background_theads = 4 +background_theads = 16 high_priority_background_threads = 1 -max_background_compactions = 3 +max_background_compactions = 15 max_background_flushes = 1 allow_os_buffer = true enable_statistics = false