Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06CA04F77 for ; Sat, 25 Jun 2011 21:50:13 +0000 (UTC) Received: (qmail 52161 invoked by uid 500); 25 Jun 2011 21:50:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51987 invoked by uid 500); 25 Jun 2011 21:50:10 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 51965 invoked by uid 99); 25 Jun 2011 21:50:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 21:50:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fdmanana@gmail.com designates 209.85.210.52 as permitted sender) Received: from [209.85.210.52] (HELO mail-pz0-f52.google.com) (209.85.210.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 21:50:06 +0000 Received: by pzd13 with SMTP id 13so2996995pzd.11 for ; Sat, 25 Jun 2011 14:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=vssEm40+2Bo0a6xAgR27BQgIVHo3YpJHIqIYx2C5ADM=; b=ti+6xsKsDi1wZ5s786Yaz6F6uMeU3jjRhS30mMMdNC7e8ZzduHFsHcNFI90JGg7dOy UXnrYeQqAI89LoQn8IyLPH9gNyWLG4lvcz04sQTKNT3J1pORmmLWb+QUn5N+VPCJXLZa iz3P2QSIedsUQ2yh3qSrHfVPfBYsKpqRuvhXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=RkiW8vyvqGSkgeaWQh7NKafmrNo8ajKi8K3gQpoWfvI7grmjnBGBwzvTf/Ntc1u8IW n75qJEPzk6TT47wVsZ7Q3WRIlLqii/E/jQ8Ms47Cd0VK+3qZHi/cf4dgI0dsNIjIw7jF DvF1CbXTjEmYcy5AH6+X0Diov1oj7hS5mc4FM= MIME-Version: 1.0 Received: by 10.68.66.70 with SMTP id d6mr2322720pbt.470.1309038585648; Sat, 25 Jun 2011 14:49:45 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.68.49.194 with HTTP; Sat, 25 Jun 2011 14:49:45 -0700 (PDT) In-Reply-To: References: Date: Sat, 25 Jun 2011 22:49:45 +0100 X-Google-Sender-Auth: E9D4FHa_8l7EU2J1sbZDg5Qbsm4 Message-ID: Subject: Re: CouchDB compaction [again]... From: Filipe David Manana To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Jun 25, 2011 at 6:32 AM, kowsik wrote: > We are running a cluster of 1.0.2 CouchDB's in production > (http://blitz.io) and the one and only thing that we have to look into > periodically is compaction. Are there plans for automatic compaction > in the roadmap so we can completely relax? Hi Kowsik, I've recently made a configurable compaction daemon (database and views). It's proposed in: https://issues.apache.org/jira/browse/COUCHDB-1153 I still have quite a few enhancements in my head todo, but in general it's ok for many cases. It was included in the Couchbase 2.0 Single preview CouchDB distribution. So far it had positive feedback, and no bugs found yet. The documentation for it: https://github.com/fdmanana/couchdb/blob/compaction_daemon/etc/couchdb/defa= ult.ini.tpl.in#L189 It makes use of recent "data_size" attribute added to trunk: https://issues.apache.org/jira/browse/COUCHDB-1132 With the recent work by > @fdmanana and @damienkatz I realize that the db size doesn't grow as > rapidly now as before, what with the snappy compression and what not. > But still this periodic checking in gets in the way of relaxing. Turns > out 1.0.2 has a bug with compaction and _changes where CouchDB can > just go poof and not leave a trace behind. It's been fixed since then, > but still... > > While we <3 CouchDB and would like to check on it every now and then, > we'd rather relax and be assured that it's always there in the > background, mapping and reducing and being happy about it. One less > thing to "monitor" and be paged on. > > Does anyone else have a write heavy couch cluster that they are > running in production with multi-master replication and _changes? > Would love to exchange notes on what you are doing to keep the DB size > sane. > > Thanks, > > K. > --- > http://blitz.io > http://twitter.com/pcapr > http://blog.mudynamics.com > --=20 Filipe David Manana, fdmanana@gmail.com, fdmanana@apache.org "Reasonable men adapt themselves to the world. =C2=A0Unreasonable men adapt the world to themselves. =C2=A0That's why all progress depends on unreasonable men."