From b7def6348ec3c90840d2b49c220be362cfb5766b Mon Sep 17 00:00:00 2001 From: Enrico Olivelli Date: Tue, 17 Sep 2024 17:51:36 +0200 Subject: [PATCH] CNDB-10856 Change the default of max_sstables_to_compact to 32 (#1286) --- .../org/apache/cassandra/db/compaction/unified/Controller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/cassandra/db/compaction/unified/Controller.java b/src/java/org/apache/cassandra/db/compaction/unified/Controller.java index eec94f004990..931c5d2189e7 100644 --- a/src/java/org/apache/cassandra/db/compaction/unified/Controller.java +++ b/src/java/org/apache/cassandra/db/compaction/unified/Controller.java @@ -856,7 +856,7 @@ public static Controller fromOptions(CompactionRealm realm, Map double maxSpaceOverhead = options.containsKey(MAX_SPACE_OVERHEAD_OPTION) ? FBUtilities.parsePercent(options.get(MAX_SPACE_OVERHEAD_OPTION)) : DEFAULT_MAX_SPACE_OVERHEAD; - int maxSSTablesToCompact = Integer.parseInt(options.getOrDefault(MAX_SSTABLES_TO_COMPACT_OPTION, "256")); + int maxSSTablesToCompact = Integer.parseInt(options.getOrDefault(MAX_SSTABLES_TO_COMPACT_OPTION, "32")); long expiredSSTableCheckFrequency = options.containsKey(EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_OPTION) ? Long.parseLong(options.get(EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_OPTION)) : DEFAULT_EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS;