caipengbo commented on code in PR #2171: URL: https://github.com/apache/kvrocks/pull/2171#discussion_r1525703123
########## kvrocks.conf: ########## @@ -727,6 +727,25 @@ rocksdb.cache_index_and_filter_blocks yes # default snappy rocksdb.compression snappy +# Specify the compression level to use. +# For zstd: valid range is from 1 to 19, +# where 1 is fastest compression and 19 is best compression. +# For zlib: valid range is from 1 to 9, +# where 1 is fastest compression and 9 is best compression. +# For lz4: adjusting the level influences the 'acceleration'. +# RocksDB sets a negative level to indicate acceleration directly, +# with more negative values indicating higher speed and less compression. +# Note: This setting is ignored for compression algorithms like Snappy that +# do not support variable compression levels. +# RocksDB Default: +# - zstd: 3 +# - zlib: Z_DEFAULT_COMPRESSION (currently -1) +# - kLZ4: -1 (i.e., `acceleration=1`; see `CompressionOptions::level` doc) +# For all others, RocksDB does not specify a compression level. +# If the compression type doesn't support the setting, it will be a no-op. +# Default: 6 DB space tuning Review Comment: `DB space tuning` What does that mean? ########## kvrocks.conf: ########## @@ -727,6 +727,25 @@ rocksdb.cache_index_and_filter_blocks yes # default snappy rocksdb.compression snappy +# Specify the compression level to use. Review Comment: I thought it would be better to add: `It trades compression speed and ratio, might be useful when tuning for disk space`. Or we attach https://github.com/facebook/rocksdb/wiki/Space-Tuning link to guide users. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
