From b632a6b2cfc5569de748c347958d363433658e98 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 22 Nov 2013 16:13:12 -0800 Subject: [PATCH] If the RocksDB base file size is changed, change the write cache and L0 size to match --- src/ripple_core/nodestore/backend/RocksDBFactory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ripple_core/nodestore/backend/RocksDBFactory.cpp b/src/ripple_core/nodestore/backend/RocksDBFactory.cpp index f8670b6264..1a86803bdf 100644 --- a/src/ripple_core/nodestore/backend/RocksDBFactory.cpp +++ b/src/ripple_core/nodestore/backend/RocksDBFactory.cpp @@ -125,6 +125,8 @@ public: if (! keyValues["file_size_mb"].isEmpty()) { options.target_file_size_base = 1024 * 1024 * keyValues["file_size_mb"].getIntValue(); + options.max_bytes_for_level_base = 5 * options.target_file_size_base; + options.write_buffer_size = 2 * options.target_file_size_base; } if (! keyValues["file_size_mult"].isEmpty())