mirror of https://github.com/apache/activemq.git
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:
parent
30038957b6
commit
875885dfa9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue