Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2256310AF0 for ; Tue, 11 Mar 2014 21:26:55 +0000 (UTC) Received: (qmail 71181 invoked by uid 500); 11 Mar 2014 21:26:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 70984 invoked by uid 500); 11 Mar 2014 21:26:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 70887 invoked by uid 99); 11 Mar 2014 21:26:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 21:26:44 +0000 Date: Tue, 11 Mar 2014 21:26:44 +0000 (UTC) From: "Isaac Z. Schlueter (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-2102) Downstream replicator database bloat MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930975#comment-13930975 ] Isaac Z. Schlueter commented on COUCHDB-2102: --------------------------------------------- Also, it's very strange that attachments would be the cause of this, since the skimdb exhibits this behavior as well, even on an initial replication (which would be attachment-free). > Downstream replicator database bloat > ------------------------------------ > > Key: COUCHDB-2102 > URL: https://issues.apache.org/jira/browse/COUCHDB-2102 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: Replication > Reporter: Isaac Z. Schlueter > > When I do continuous replication from one db to another, I get a lot of bloat over time. > For example, replicating a _users db with a relatively low level of writes, and around 30,000 documents, the size on disk of the downstream replica was over 300MB after 2 weeks. I compacted the DB, and the size dropped to about 20MB (slightly smaller than the source database). > Of course, I realize that I can configure compaction to happen regularly. But this still seems like a rather excessive tax. It is especially shocking to users who are replicating a 100GB database full of attachments, and find it grow to 400GB if they're not careful! You can easily end up in a situation where you don't have enough disk space to successfully compact. > Is there a fundamental reason why this happens? Or has it simply never been a priority? It'd be awesome if replication were more efficient with disk space. -- This message was sent by Atlassian JIRA (v6.2#6252)