Increase the default auto compaction ratio.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1481528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2013-05-12 11:23:40 +00:00
parent 30038957b6
commit 875885dfa9
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -174,7 +174,7 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
@BeanProperty
var monitorStats = false
@BeanProperty
var autoCompactionRatio = 100
var autoCompactionRatio = 250
var purgeOnStatup: Boolean = false