couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1153) Database and view index compaction daemon
Date Tue, 10 May 2011 09:48:03 GMT
Database and view index compaction daemon

                 Key: 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:

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:

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:

View raw message