From 9e2ccc15dfec5df810f49b9a63f0bdb9c9aa5dff Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Tue, 29 Oct 2013 15:41:04 -0500 Subject: [PATCH] change CRTO default to 5% --- NEWS.txt | 4 ++++ .../db/compaction/SizeTieredCompactionStrategyOptions.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index c173bc8576..cdc4cf1406 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -24,6 +24,10 @@ Upgrading upgrading to 2.1 due to the fact that the old JSON leveled manifest is migrated into the sstable metadata files on startup in 2.0 and this code is gone from 2.1. + - For size-tiered compaction users, Cassandra now defaults to ignoring + the coldest 5% of sstables. This can be customized with the + cold_reads_to_omit compaction option; 0.0 omits nothing (the old + behavior) and 1.0 omits everything. 2.0.2 diff --git a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java index c6c5f1be34..84e7d61f17 100644 --- a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java +++ b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java @@ -26,7 +26,7 @@ public final class SizeTieredCompactionStrategyOptions protected static final long DEFAULT_MIN_SSTABLE_SIZE = 50L * 1024L * 1024L; protected static final double DEFAULT_BUCKET_LOW = 0.5; protected static final double DEFAULT_BUCKET_HIGH = 1.5; - protected static final double DEFAULT_COLD_READS_TO_OMIT = 0.0; + protected static final double DEFAULT_COLD_READS_TO_OMIT = 0.05; protected static final String MIN_SSTABLE_SIZE_KEY = "min_sstable_size"; protected static final String BUCKET_LOW_KEY = "bucket_low"; protected static final String BUCKET_HIGH_KEY = "bucket_high";