sijie commented on issue #851: Issue 578 : make MajorCompaction controlled by time of the day/day of the week URL: https://github.com/apache/bookkeeper/pull/851#issuecomment-355656252 > We have a http endpoint in the bookieserver now. Just create a new endpoint which when called calls GarbageCollectorThread.triggerGC(true, false, false). > Then, this can be triggered via a cronjob locally, or a cronjob in a central location that calls out to all bookies. As a bonus, we don't have to implement our own cron, and have fewer configuration knobs to test and maintain. @ivankelly this can be a solution for advanced users. However IMO using an external cron job triggering things increases ops complexity: 1) you have multiple locations to manage things (bookie config, cron configs) 2) you need to debug multiple locations when issues occur (external cron, http service, and the bookie). I think if there is a robust cron library that we can use, having a cron based scheduler to control when to trigger timer tasks (e.g. compaction, auditor) can be an advanced improvement. > have fewer configuration knobs to test and maintain I think the agreement here is trending to a cron expression/mechanism on controlling when to schedule compactions. that says, ideally if we have a robust cron, you don't need to define intervals, we can just write a cron expression in the config file.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
