You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/02/12 19:03:22 UTC

[GitHub] reddycharan opened a new pull request #1946: (WIP) Have min time interval for force compaction.

reddycharan opened a new pull request #1946: (WIP) Have min time interval for force compaction.
URL: https://github.com/apache/bookkeeper/pull/1946
 
 
   
   
   Descriptions of the changes in this PR:
   
   - minimum interval needed to trigger force compaction by LedgerDirsListener,
   since the last main compaction. Otherwise if isForceGCAllowWhenNoSpace is enabled
   and when disk reaches storage threshold, it will do busy force gc for every
   'diskCheckInterval' (10 secs) untill the disk/bookie becomes writable again.
   gc operation is an expensive operation and it puts load on metadataserver for
   iterating over all ledgers metadata. So we call forcegc judiciously when
   disk/bookie reaches storage threshold.
   
   Here main compaction will be Major compaction, if majorcompaction is
   disabled/suspended then it will be minorcompaction. If both major and minor are
   disabled/suspended then it will be just gc run.
   
   - in LedgerDirsMonitor and in GarbageCollectorThread we should schedule tasks
   with fixed delay instead of at fixed rate. This would ensure that there would be
   uniform delay between executions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services