History log of /3.0.2-MP2/couchdb/src/couchdb/couch_compaction_daemon.erl (Results 1 - 18 of 18)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v4.6.0, v4.5.0, 2.1.1r, 2.1.0r, 2.0.2r, 2.0.1-linux, 2.0.0-couchbase
# 5dd1d544 28-Nov-2011 Damien Katz <damien@couchbase.com>

Removal of CouchDB revision tree support for efficiency

XDCR is broken. Otherwise ready for testing.

Change-Id: I25a929e1fc66904a455c5d49c2c1cf70f6bd00d0
Reviewed-on: http://rev

Removal of CouchDB revision tree support for efficiency

XDCR is broken. Otherwise ready for testing.

Change-Id: I25a929e1fc66904a455c5d49c2c1cf70f6bd00d0
Reviewed-on: http://review.couchbase.org/11220
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Damien Katz <damien@couchbase.com>

show more ...


Revision tags: couchbase_1.2.0
# 0e5f1974 05-Sep-2011 Filipe David Manana <fdmanana@apache.org>

Close database if database compaction is not done

Issue found, and patch, by Mike Leddy. Patch extended
with a test. Thanks Mike.

Change-Id: Ibc24cce02746c94b400e5caf688721b8484

Close database if database compaction is not done

Issue found, and patch, by Mike Leddy. Patch extended
with a test. Thanks Mike.

Change-Id: Ibc24cce02746c94b400e5caf688721b8484bfe54
Reviewed-on: http://review.couchbase.org/9388
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# c6fb48d2 21-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Don't open database or view group if not needed

If we're not in the allowed time window for a compaction,
don't open the database or a view group because it will be
pointless.

Don't open database or view group if not needed

If we're not in the allowed time window for a compaction,
don't open the database or a view group because it will be
pointless.

Change-Id: I6ab5a68967445266988f0d2dd2b393d5d7ef89f7
Reviewed-on: http://review.couchbase.org/9150
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 30b17649 20-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Start os_mon application via startup script

Change-Id: Id3068660d9fa8847e1226727d5ad6457a26c6383
Reviewed-on: http://review.couchbase.org/9141
Reviewed-by: Filipe David Borba Manana

Start os_mon application via startup script

Change-Id: Id3068660d9fa8847e1226727d5ad6457a26c6383
Reviewed-on: http://review.couchbase.org/9141
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 6cb24617 17-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Update compaction daemon's config format

The .ini configuration values are now an Erlang term -
a list of 2 elements tuples, instead of K=V pairs separated
by spaces. This is to make

Update compaction daemon's config format

The .ini configuration values are now an Erlang term -
a list of 2 elements tuples, instead of K=V pairs separated
by spaces. This is to make it consistent with the rest of
the .ini configuration.

Change-Id: I49f77e929784ff1b397e11a8cd918d0947b548c2
Reviewed-on: http://review.couchbase.org/9059
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 5ab0e4c3 16-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Update default to match the .ini config

Change-Id: Ib03a809464b4b90717f6abf22dea27d90820c869
Reviewed-on: http://review.couchbase.org/9044
Reviewed-by: Filipe David Borba Manana <fdm

Update default to match the .ini config

Change-Id: Ib03a809464b4b90717f6abf22dea27d90820c869
Reviewed-on: http://review.couchbase.org/9044
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 4111f551 16-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Compaction daemon's config change handling

Using an exported function prevents odd issues with OTP's
dynamic code reloading.

Change-Id: I65a14133e5a8d8038c6a4e826e4231cf294984ad

Compaction daemon's config change handling

Using an exported function prevents odd issues with OTP's
dynamic code reloading.

Change-Id: I65a14133e5a8d8038c6a4e826e4231cf294984ad
Reviewed-on: http://review.couchbase.org/9043
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 48decd01 16-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Don't skip view compaction if db compaction isn't needed

If a database doesn't need to be compacted (or can't be compacted
due to the allowed period parameter), don't forget to check if

Don't skip view compaction if db compaction isn't needed

If a database doesn't need to be compacted (or can't be compacted
due to the allowed period parameter), don't forget to check if
its views need/can be compacted.

Change-Id: I8d93025d83a6a055e6bc4bd3e031a37622bbeeaf
Reviewed-on: http://review.couchbase.org/9042
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 63295b08 16-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Don't keep the database open when compacting its views

Change-Id: Icab5b4ba943fe31d5819eaaf478681a0cd211581
Reviewed-on: http://review.couchbase.org/9041
Reviewed-by: Filipe David Bo

Don't keep the database open when compacting its views

Change-Id: Icab5b4ba943fe31d5819eaaf478681a0cd211581
Reviewed-on: http://review.couchbase.org/9041
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 3cc4a186 16-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Demonitor compaction processes after timeout

This is necessary otherwise the monitoring process' mailbox
might get too big.

Change-Id: Ifc48a1a31ecba3b5eff8f07e0c5256863cd9b2cb

Demonitor compaction processes after timeout

This is necessary otherwise the monitoring process' mailbox
might get too big.

Change-Id: Ifc48a1a31ecba3b5eff8f07e0c5256863cd9b2cb
Reviewed-on: http://review.couchbase.org/9040
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 62e0ad3c 10-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Don't trigger view compaction if it's being updated

Change-Id: I2cf61b4e85b21cc11c871a7e3194804cab462537
Reviewed-on: http://review.couchbase.org/8784
Reviewed-by: Damien Katz <damie

Don't trigger view compaction if it's being updated

Change-Id: I2cf61b4e85b21cc11c871a7e3194804cab462537
Reviewed-on: http://review.couchbase.org/8784
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 481436c2 02-Aug-2011 Filipe David Manana <fdmanana@apache.org>

Update compaction daemon's config

The specification of compactions is now under the section
[compactions] while the section [compaction_daemon] is now
used for global parameters used

Update compaction daemon's config

The specification of compactions is now under the section
[compactions] while the section [compaction_daemon] is now
used for global parameters used by the compaction daemon.
Also trimmed configuration comment lines to a 80 characters
max width.

Change-Id: I6b417b64d30de6f08992aa040c717978a46ad860
Reviewed-on: http://review.couchbase.org/8571
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


Revision tags: couchbase_1.1.2
# d41771db 26-Jul-2011 Filipe David Manana <fdmanana@apache.org>

Don't auto compact too small files

Due to block padding done for writing headers on
4kb boundaries, very small files always have a high
fragmentation and compacting them constantly i

Don't auto compact too small files

Due to block padding done for writing headers on
4kb boundaries, very small files always have a high
fragmentation and compacting them constantly is simply
useless.

Change-Id: If29f0fd970fa531cd23357ad654b68c98f207f7d
Reviewed-on: http://review.couchbase.org/8380
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...


Revision tags: couchbase_1.1.2a
# 5c59dc3d 17-Jul-2011 Filipe David Manana <fdmanana@apache.org>

Fix typo in log message

vew -> view

Change-Id: I0654025a5635704fa835404fa0d8877259a85789
Reviewed-on: http://review.couchbase.org/8083
Reviewed-by: Damien Katz <damien@couch

Fix typo in log message

vew -> view

Change-Id: I0654025a5635704fa835404fa0d8877259a85789
Reviewed-on: http://review.couchbase.org/8083
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 4ffa9b07 17-Jul-2011 Filipe David Manana <fdmanana@apache.org>

Allow parallel compaction of a database and its views

This allows, via a configuration parameter, for a database and
its view groups to be compacted in parallel. This is useful
when

Allow parallel compaction of a database and its views

This allows, via a configuration parameter, for a database and
its view groups to be compacted in parallel. This is useful
when the database and view index files are stored on different
disks for example.

Change-Id: Ifb2ab78bcd5666e1d95397b3c47016e6de941a6c
Reviewed-on: http://review.couchbase.org/8082
Reviewed-by: Damien Katz <damien@couchbase.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 281818dc 16-Jul-2011 Filipe David Manana <fdmanana@apache.org>

Gracefully hand invalid compaction configuration

If the compaction configuration for a database is invalid, don't
crash the daemon - just catch the error and log an helpful error
mes

Gracefully hand invalid compaction configuration

If the compaction configuration for a database is invalid, don't
crash the daemon - just catch the error and log an helpful error
message.

This could make the daemon be restarted 10 times in less then an
hour by the CouchDB main supervisor - after the 10th attempt, Couch
would need to be restarted (the supervisor's configuration allows for
a maximum restart frequency of 10 per hour).

Change-Id: Id7c9d45d841142bbc003019432e760d0dc253eb3
Reviewed-on: http://review.couchbase.org/8055
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 1a9405c2 16-Jul-2011 Filipe David Manana <fdmanana@apache.org>

Minor updates to compaction daemon

1) Changed the database scan interval from 30 minutes to 1 minute;

2) Changed disk space check interval from 5 minutes to 1 minute;

3) Ad

Minor updates to compaction daemon

1) Changed the database scan interval from 30 minutes to 1 minute;

2) Changed disk space check interval from 5 minutes to 1 minute;

3) Added some useful debug level log messages;

4) Estimated space necessary for compaction is now more
pessimistic -> 2 * data_size (instead of 1.70 * data_size)

Change-Id: I9e2b4fc3cfb5ab7f8c89448cde0b0562e7f4fdd3
Reviewed-on: http://review.couchbase.org/8054
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...


# 578c5595 13-May-2011 Filipe David Manana <fdmanana@apache.org>

Added compaction daemon

Documentation and examples can be found in the comments of
default.ini (section [compaction_daemon])