Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84726 invoked from network); 8 Apr 2011 15:41:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2011 15:41:05 -0000 Received: (qmail 89199 invoked by uid 500); 8 Apr 2011 15:41:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89160 invoked by uid 500); 8 Apr 2011 15:41:04 -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 89152 invoked by uid 99); 8 Apr 2011 15:41:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 15:41:04 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fdmanana@gmail.com designates 74.125.83.180 as permitted sender) Received: from [74.125.83.180] (HELO mail-pv0-f180.google.com) (74.125.83.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 15:40:57 +0000 Received: by pvg2 with SMTP id 2so2200644pvg.11 for ; Fri, 08 Apr 2011 08:40:36 -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:cc:content-type :content-transfer-encoding; bh=ozKcK/n2iedu2Oa7byoJuMV4Nw7+/5B/fxPuOmX4piU=; b=A/dbiKn+idOkji2sSZ60KlJJ7tkkYqmJxDkJtkDZZX4zbdrncqUoI7Z3h/dUkJew+v 9ntzjwZVR9/H062b9lBsqMiIjLpxibAYTodHUgPHkLLfu5MF3lNGhiWnhHaYBGof888Z NB7w537QfzZDzhrNx05lEdqOnt4+ZW2LIihT8= 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:cc:content-type :content-transfer-encoding; b=DGTLUsWX1dSuthwcdwAyCEwVv4TVhnhK2e6sv+Szs9DLHq/TL6Z1nCSBJpWtE/CzJ3 hGR1TCsyatBi1TnYq3FUBQiTGE/wDJQq2Je1nndxQGwxZGpRGxqw+mRNgXFrkFHfnAnE +CM104RkUQ2KkwVTX/4lnWWDdEGbGUgbdJwFM= MIME-Version: 1.0 Received: by 10.143.24.31 with SMTP id b31mr1910766wfj.244.1302277135812; Fri, 08 Apr 2011 08:38:55 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.68.64.227 with HTTP; Fri, 8 Apr 2011 08:38:55 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 Apr 2011 16:38:55 +0100 X-Google-Sender-Auth: tIs_p3B5Z7UAdBakCQGeHXafhvY Message-ID: Subject: Re: Couch Replication: slave on-disk size bloat From: Filipe David Manana To: steve.webb@beatport.com Cc: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Apr 8, 2011 at 4:31 PM, wrote: > I'm not sure what's in the databases. =C2=A0Why? =C2=A0Would large attach= ments explain > this in some way? Yes. The current replicator in 1.0.x and 1.1 (yet to be released), when replicating a new revision of a document with attachments, it replicates all the attachments, not just the attachments missing on the target. So you might end up with the same attachments several times in the target database file (compaction will fix this of course). The new replicator, in trunk only, doesn't have this behaviour - it replicates only the missing attachments. > > - Steve > > On Fri, 8 Apr 2011, Filipe David Manana wrote: > >> Do you have many and/or large attachments? >> >> On Thu, Apr 7, 2011 at 10:24 PM, =C2=A0 wrote: >>> >>> Hello there. >>> >>> New couch admin here. >>> >>> I've got two couchdb machines that are not being written to. >>> >>> I cleaned off the slave, then replicated and compacted the DBs on the >>> slave >>> and the slave DB size on-disk is *way* more than on the master. >>> >>> Also, we've found that when the slaves are being actively written >>> (replicated) to, over time, they grow > 10x the size of the master's fi= le >>> size. >>> >>> Master: >>> >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0 =C2=A0 =C2=A020565 Apr =C2=A0= 7 12:02 api-keys.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb 2414678118 Apr =C2=A07 11:41 >>> similar-tracks.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0851714150 Apr =C2=A07 11:52 si= temap.couch >>> drwxr-xr-x =C2=A02 couchdb couchdb =C2=A0 =C2=A0 =C2=A0 4096 Feb 15 01:= 10 .sitemap_design >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0 76939362 Apr =C2=A07 11:27 to= p-downloads.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0268513382 Apr =C2=A07 11:30 >>> users-also-bought.couch >>> >>> Slave (after delete, replication and compaction): >>> >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0 =C2=A0 =C2=A0 8280 Apr =C2=A0= 7 12:02 api-keys.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb 5261164653 Apr =C2=A07 14:16 >>> similar-tracks.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0860319850 Apr =C2=A07 13:58 si= temap.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0122777700 Apr =C2=A07 13:50 to= p-downloads.couch >>> -rw-r--r-- =C2=A01 couchdb couchdb =C2=A0285810794 Apr =C2=A07 13:52 >>> users-also-bought.couch >>> >>> Q1: Is this normal? >>> Q2: Is there a way to fix this or turn off whatever is turned on that >>> causes >>> this? >>> >>> - Steve Webb >>> >>> -- >>> Steve Webb | System Administrator >>> Beatport | Play With Music >>> ------------------------------------------ >>> 2399 Blake Street, Suite 170 >>> Denver, Colorado USA 80205 >>> tel: +1.720.932.9103 >>> fax: +1.720.932.9104 >>> noc: +1.303.565.2710 >>> mobile: +1.303.564.4269 >>> >> >> >> >> > > -- > Steve Webb | System Administrator > Beatport | Play With Music > ------------------------------------------ > 2399 Blake Street, Suite 170 > Denver, Colorado USA 80205 > tel: +1.720.932.9103 > fax: +1.720.932.9104 > noc: +1.303.565.2710 > mobile: +1.303.564.4269 --=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."