From 8599f93d9a6b198913228c05accceba9398ba17a Mon Sep 17 00:00:00 2001 From: Jeremy Hanna Date: Mon, 6 Jul 2020 10:48:44 +1000 Subject: [PATCH] Update compaction_throughput_mb_per_sec default from 16 to 64 patch by Jeremy Hanna; reviewed by Mick Semb Wever for CASSANDRA-14902 --- CHANGES.txt | 1 + NEWS.txt | 2 ++ conf/cassandra.yaml | 7 ++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9bca84913e..231a19b32e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 4.0-alpha5 + * Update compaction_throughput_mb_per_sec throttle default to 64 (CASSANDRA-14902) * Add option to disable compaction at startup (CASSANDRA-15927) * FBUtilities.getJustLocalAddress falls back to lo ip on misconfigured nodes (CASSANDRA-15901) * Close channel and reduce buffer allocation during entire sstable streaming with SSL (CASSANDRA-15900) diff --git a/NEWS.txt b/NEWS.txt index 4d2252a925..7b9676b13a 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -251,6 +251,8 @@ Upgrading four digits need to be prefixed with a plus or minus sign. - cqlsh now returns a non-zero code in case of errors. This is a backward incompatible change so it may break existing scripts that rely on the current behavior. See CASSANDRA-15623 for more details. + - Updated the default compaction_throughput_mb_per_sec to to 64. The original + default (16) was meant for spinning disk volumes. See CASSANDRA-14902 for details. Deprecation diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml index 80dbf388a6..4bd72cf5e3 100644 --- a/conf/cassandra.yaml +++ b/conf/cassandra.yaml @@ -831,9 +831,10 @@ concurrent_materialized_view_builders: 1 # system. The faster you insert data, the faster you need to compact in # order to keep the sstable count down, but in general, setting this to # 16 to 32 times the rate you are inserting data is more than sufficient. -# Setting this to 0 disables throttling. Note that this account for all types -# of compaction, including validation compaction. -compaction_throughput_mb_per_sec: 16 +# Setting this to 0 disables throttling. Note that this accounts for all types +# of compaction, including validation compaction (building Merkle trees +# for repairs). +compaction_throughput_mb_per_sec: 64 # When compacting, the replacement sstable(s) can be opened before they # are completely written, and used in place of the prior sstables for