change CRTO default to 5%

Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9e2ccc15
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9e2ccc15
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9e2ccc15

Branch: refs/heads/trunk
Commit: 9e2ccc15dfec5df810f49b9a63f0bdb9c9aa5dff
Parents: 4f0bc89
Author: Jonathan Ellis <jbel...@apache.org>
Authored: Tue Oct 29 15:41:04 2013 -0500
Committer: Jonathan Ellis <jbel...@apache.org>
Committed: Tue Oct 29 15:41:04 2013 -0500

----------------------------------------------------------------------
 NEWS.txt                                                         | 4 ++++
 .../db/compaction/SizeTieredCompactionStrategyOptions.java       | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9e2ccc15/NEWS.txt
----------------------------------------------------------------------
diff --git a/NEWS.txt b/NEWS.txt
index c173bc8..cdc4cf1 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

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9e2ccc15/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java
----------------------------------------------------------------------
diff --git 
a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java
 
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions.java
index c6c5f1b..84e7d61 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";

Reply via email to