Database and view index compaction daemon
-----------------------------------------
Key: COUCHDB-1153
URL: https://issues.apache.org/jira/browse/COUCHDB-1153
Project: CouchDB
Issue Type: New Feature
Environment: trunk
Reporter: Filipe Manana
Priority: Minor
I've recently written an Erlang process to automatically compact databases and
they're views based on some configurable parameters. These parameters can be
global or per database and are: minimum database fragmentation, minimum view
fragmentation, allowed period and "abortion" (whether an ongoing compaction
should be stopped if it doesn't finish within the allowed period). These
fragmentation values are based on the recently added "data_size" parameter to
the database and view group information URIs (COUCHDB-1132).
I've documented the .ini configuration here:
https://github.com/fdmanana/couchdb/compare/compaction_daemon#diff-0
The full patch is mostly a new module but also does some minimal changes and a
small refactoring to the view compaction code, not changing the current
behaviour.
Patch is at:
https://github.com/fdmanana/couchdb/compare/compaction_daemon
By default the daemon is idle, without any configuration enabled. I'm open to
suggestions on additional parameters and a better configuration system.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira