-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bring smoosh in-tree #2326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring smoosh in-tree #2326
Conversation
config_listener_mon establishes a monitor of the caller process. Therefore it is incorrect to call config:listen_for_changes from temporary process.
Update API for handle_config_terminate/3
Avoid using `erlang:now/0`
This patch allows administrators to configure smoosh to only execute compactions during a specified time window on a per-channel basis. The (partial) configuration looks like [smoosh] db_channels=overnight_channel [smoosh.overnight_channel] from = 22:00 to = 06:00 strict_window = true If `strict_window` is set to true, smoosh will suspend all currently running compactions in this channel when leaving the time window, and resume them in the next window. If left at the default, currently running compactions will be allowed to complete but no new compactions will be started until the window is open again.
|
Doing a local build with |
34b485d to
02b9f25
Compare
|
Ah, thanks Nick that definitely points out what I was missing. Hopefully fixed the |
|
Hello. There was undefined module call couch_md_index_manager:get_group_pid ( https://github.com/apache/couchdb/pull/2326/files#diff-113cd247cfe56b1aa882a37daa2856fd33bab2e2a6183034eb3a30088960dc13R246 ). Could somebody explain me where i can find this module ? |
|
@loguntsov that was an experimental "schema" discovery feature I believe that never made it into a release In the recent version of main the reference to that module should be removed |
Overview
This adds the auto-compaction daemon directly into the main repo. It also adds the "Support scheduling compactions during time windows" enhancement and related unit tests that were added to couchdb-smoosh after the 1.0.1 tag.
We use git-subtree to carry the smoosh history forward, with an invocation like
Testing recommendations
Check that the codebase is the same as you would get by moving the "smoosh" tag in rebar to "master".
Checklist
rel/overlay/etc/default.ini