mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
If the RocksDB base file size is changed, change the write cache and L0 size to match
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user