From 160cbc1276503a50fe42f63996211094da5cafbd Mon Sep 17 00:00:00 2001 From: Benedict Elliott Smith Date: Wed, 28 Jan 2015 22:44:35 +0000 Subject: [PATCH] ninja remove commitlog_periodic_queue_size from cassandra.yaml, and @Deprecate in Config.java --- conf/cassandra.yaml | 6 +----- src/java/org/apache/cassandra/config/Config.java | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml index a58b5962cb..0b114aa078 100644 --- a/conf/cassandra.yaml +++ b/conf/cassandra.yaml @@ -236,13 +236,9 @@ counter_cache_save_period: 7200 # # the other option is "periodic" where writes may be acked immediately # and the CommitLog is simply synced every commitlog_sync_period_in_ms -# milliseconds. commitlog_periodic_queue_size allows 1024*(CPU cores) pending -# entries on the commitlog queue by default. If you are writing very large -# blobs, you should reduce that; 16*cores works reasonably well for 1MB blobs. -# It should be at least as large as the concurrent_writes setting. +# milliseconds. commitlog_sync: periodic commitlog_sync_period_in_ms: 10000 -# commitlog_periodic_queue_size: # The size of the individual commitlog file segments. A commitlog # segment may be archived, deleted, or recycled once all the data diff --git a/src/java/org/apache/cassandra/config/Config.java b/src/java/org/apache/cassandra/config/Config.java index a78cd637cc..4c1a2c4896 100644 --- a/src/java/org/apache/cassandra/config/Config.java +++ b/src/java/org/apache/cassandra/config/Config.java @@ -153,7 +153,9 @@ public class Config public Double commitlog_sync_batch_window_in_ms; public Integer commitlog_sync_period_in_ms; public int commitlog_segment_size_in_mb = 32; - public int commitlog_periodic_queue_size = 1024 * FBUtilities.getAvailableProcessors(); + + @Deprecated + public int commitlog_periodic_queue_size = -1; public String endpoint_snitch; public Boolean dynamic_snitch = true;