Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 3415 invoked from network); 12 Jun 2008 19:45:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 19:45:43 -0000 Received: (qmail 74140 invoked by uid 500); 12 Jun 2008 19:45:41 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 74116 invoked by uid 500); 12 Jun 2008 19:45:41 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 74090 invoked by uid 99); 12 Jun 2008 19:45:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 12:45:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 19:45:00 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 4836CD2EC for ; Thu, 12 Jun 2008 19:44:48 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Thu, 12 Jun 2008 19:44:48 -0000 Message-ID: <20080612194448.10935.19852@eos.apache.org> Subject: [Couchdb Wiki] Trivial Update of "Compaction" by sergeyk X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by sergeyk: http://wiki.apache.org/couchdb/Compaction The comment on the change is: Minor correction on "Additional Info", renamed to Compaction of write-heavy dbs ------------------------------------------------------------------------------ The compact_running key will be set to true during compaction. - === Additional Information === + === Compaction of write-heavy databases === Note, it is not a good idea to attempt compaction on a database is near full capacity for its write load. The problem is the compaction process may never catch up with the writes if they never let up, and eventually it will run out of disk space. Compaction should be attempted when the write load is less than full capacity. Read load won't affect its ability to complete however. CouchDB works like this to have the least impact possible on clients, the database remains online and fully functional to readers and writers. It is a design limitation that database compaction can't complete when at capacity for write load. It may be reasonable to schedule compactions during off-peak hours. - In a clustered environment the write load can switched off for any node before compaction and brought back up to date with + In a clustered environment the write load can be switched off for any node before compaction and brought back up to date with compaction once complete. In the future, a single CouchDB node can be changed to stop or fail other updates if the write load is too heavy for it to complete in a reasonable time.