Set more conservative default values on RocksDB for memory usage
Lowered the default RocksDB settings for the block cache and write buffers
Author: Damian Guy
Reviewers: Eno Thereska, Guozhang Wang
Closes from dguy/kafka-4484
@@ -70,8 +70,8 @@ public class RocksDBStore<K, V> implements KeyValueStore<K, V> {
// TODO: these values should be configurable
private static final CompressionType COMPRESSION_TYPE = CompressionType.NO_COMPRESSION;
private static final CompactionStyle COMPACTION_STYLE = CompactionStyle.UNIVERSAL;
- private static final long WRITE_BUFFER_SIZE = 32 * 1024 * 1024L;
- private static final long BLOCK_CACHE_SIZE = 100 * 1024 * 1024L;
+ private static final long WRITE_BUFFER_SIZE = 16 * 1024 * 1024L;
+ private static final long BLOCK_CACHE_SIZE = 50 * 1024 * 1024L;
private static final long BLOCK_SIZE = 4096L;
private static final int TTL_SECONDS = TTL_NOT_USED;
private static final int MAX_WRITE_BUFFERS = 3;
