Skip to content

Commit cb0aa67

Browse files
committed
synced default kvrock settings for docker
1 parent 235b105 commit cb0aa67

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docker/kvrocks.conf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,16 @@ log-level info
1414
# RocksDB settings
1515
rocksdb.compression snappy
1616
rocksdb.max_open_files 4096
17+
# Block cache size in MB (default 4096MB - too high for most containers)
18+
rocksdb.block_cache_size 512
19+
# Write buffer size in MB (default 64MB)
20+
rocksdb.write_buffer_size 256
21+
rocksdb.max_write_buffer_number 4
1722

18-
rocksdb.ttl 1814400
23+
rocksdb.ttl 1296000
24+
25+
# Compaction scheduler - checks every hour
26+
compaction-checker-cron * * * * *
27+
# Force compact files older than 48 hours with at least 10% deleted records
28+
force-compact-file-age 172800
29+
force-compact-file-min-deleted-percentage 10

0 commit comments

Comments
 (0)