activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1481528 - in /activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb: LevelDBClient.scala LevelDBStore.scala
Date Sun, 12 May 2013 11:23:40 GMT
Author: chirino
Date: Sun May 12 11:23:40 2013
New Revision: 1481528

URL: http://svn.apache.org/r1481528
Log:
Increase the default auto compaction ratio.

Modified:
    activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
    activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala

Modified: activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala?rev=1481528&r1=1481527&r2=1481528&view=diff
==============================================================================
--- activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
(original)
+++ activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBClient.scala
Sun May 12 11:23:40 2013
@@ -1422,7 +1422,6 @@ class LevelDBClient(store: LevelDBStore)
       val ratio = (index_usage*1.0f/index_queue_entries)
       // println("usage: index_usage:%d, index_queue_entries:%d, ratio: %f".format(index_usage,
index_queue_entries, ratio))
 
-      // After running some load we empirically found that a healthy ratio is between 12
and 25 bytes per entry.
       // lets compact if we go way over the healthy ratio.
       if( ratio > store.autoCompactionRatio ) {
         index.compact_needed = true

Modified: activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala?rev=1481528&r1=1481527&r2=1481528&view=diff
==============================================================================
--- activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
(original)
+++ activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
Sun May 12 11:23:40 2013
@@ -174,7 +174,7 @@ class LevelDBStore extends LockableServi
   @BeanProperty
   var monitorStats = false
   @BeanProperty
-  var autoCompactionRatio = 100
+  var autoCompactionRatio = 250
 
   var purgeOnStatup: Boolean = false
 



Mime
View raw message