kocolosk opened a new pull request #3: Support scheduling compactions during 
time windows
URL: https://github.com/apache/couchdb-smoosh/pull/3
 
 
   This PR restores the CouchDB 2.x functionality of defining time windows 
during which compaction is allowed. It does this on a per-channel basis, e.g.
   
   ```
   [smoosh.overnight_channel]
   from = 20:00
   to = 06:00
   strict_window = true
   ```
   
   The `strict_window` setting will cause smoosh to suspend all running 
compactions in this channel when leaving the window, rather than canceling them 
outright as in CouchDB 2.x.
   
   I added some simple ExUnit tests on the window logic; the actual suspend / 
resume logic mostly uses existing Smoosh functionality and adds a 
self-addressed message once a minute to check if the channel is still operating 
in an allowed window.

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


With regards,
Apache Git Services

Reply via email to