Skip to content

Commit

Permalink
[conf]minorCompactionInterval should be greater than gcWaitTime (apac…
Browse files Browse the repository at this point in the history
…he#4592)

* minorCompactionInterval should be greater than gcWaitTime

* Add majorCompactionInterval check.
  • Loading branch information
codelipenghui authored and merlimat committed Jun 25, 2019
1 parent ff03aad commit 0cf0a09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/bookkeeper.conf
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ minorCompactionThreshold=0.2

# Interval to run minor compaction, in seconds
# If it is set to less than zero, the minor compaction is disabled.
# Note: should be greater than gcWaitTime.
minorCompactionInterval=3600

# Set the maximum number of entries which can be compacted without flushing.
Expand All @@ -497,6 +498,7 @@ majorCompactionThreshold=0.5

# Interval to run major compaction, in seconds
# If it is set to less than zero, the major compaction is disabled.
# Note: should be greater than gcWaitTime.
majorCompactionInterval=86400

# Throttle compaction by bytes or by entries.
Expand Down

0 comments on commit 0cf0a09

Please sign in to comment.