From a7f89688e5b4fdc2f8990fc42cb593da4f6a923f Mon Sep 17 00:00:00 2001 From: Romain Hardouin Date: Tue, 24 Sep 2019 11:20:54 -0700 Subject: [PATCH] Fix Zstd compression level documentation Patch by Romain Hardouin; Reviewed by Dinesh Joshi for CASSANDRA-15296 --- doc/source/operating/compression.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/operating/compression.rst b/doc/source/operating/compression.rst index 42a057b242..b4308b31a3 100644 --- a/doc/source/operating/compression.rst +++ b/doc/source/operating/compression.rst @@ -38,7 +38,9 @@ default, three options are relevant: - ``chunk_length_in_kb`` specifies the number of kilobytes of data per compression chunk. The default is 64KB. - ``crc_check_chance`` determines how likely Cassandra is to verify the checksum on each compression chunk during reads. The default is 1.0. -- ``compression_level`` is only applicable for ``ZstdCompressor`` and accepts values between ``-131072`` and ``2``. +- ``compression_level`` is only applicable for ``ZstdCompressor`` and accepts values between ``-131072`` and ``22``. + The lower the level, the faster the speed (at the cost of compression). Values from 20 to 22 are called + "ultra levels" and should be used with caution, as they require more memory. The default is 3. Users can set compression using the following syntax: