Return-Path: X-Original-To: apmail-couchdb-replication-archive@minotaur.apache.org Delivered-To: apmail-couchdb-replication-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2377C108FC for ; Fri, 24 Jan 2014 20:26:20 +0000 (UTC) Received: (qmail 49812 invoked by uid 500); 24 Jan 2014 20:26:17 -0000 Delivered-To: apmail-couchdb-replication-archive@couchdb.apache.org Received: (qmail 49775 invoked by uid 500); 24 Jan 2014 20:26:16 -0000 Mailing-List: contact replication-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: replication@couchdb.apache.org Delivered-To: mailing list replication@couchdb.apache.org Received: (qmail 49759 invoked by uid 99); 24 Jan 2014 20:26:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jan 2014 20:26:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jan 2014 20:26:11 +0000 Received: by mail-oa0-f47.google.com with SMTP id m1so4306656oag.34 for ; Fri, 24 Jan 2014 12:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=mbPHJjOVWHoUZTcGg+0IsA0AtqtDrH2kzVuiZKFy5m8=; b=YgPVEpGapwVqS9wksl4EPZ31GLEw40LKe238FgD8cFQ6AT+14dFBxVi8r+N6osU52o d+TGFG7oaqOpnaFJS1SP+5VahG2gAn0LE5PepP4u1VsLpy9LBU49XesQ0RwcL0ae3YZt J3/ht10pUKbeJBh//qCxmpuQCFvW6E0S5wGVTdnWBOD6jZH/D1zX8ft0jCFUFnSoncJb T/ZjxKPHPuRToyaB4xkoCYDiSdkUXPff2MbcUXAp+xONyvYHjcuib1aioac+nJKbjGsX w7TYa2+m1akrwClMNhV+Hn9LNjZjc0zIgyPBYe9yib3EvJt0D9xiFQItFK15F7CQoK4a JlaA== X-Received: by 10.60.56.70 with SMTP id y6mr4225050oep.32.1390595150630; Fri, 24 Jan 2014 12:25:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.162.36 with HTTP; Fri, 24 Jan 2014 12:25:10 -0800 (PST) In-Reply-To: <1390592477.75634.YahooMailNeo@web181705.mail.ne1.yahoo.com> References: <1390516056.86695.YahooMailNeo@web181704.mail.ne1.yahoo.com> <971E80C1-D48B-43FB-9D4D-1358DEB990DC@gmail.com> <7287522C-0E33-4771-8F20-B1332A2BE496@couchbase.com> <1390578027.9094.YahooMailNeo@web181706.mail.ne1.yahoo.com> <1390592077.58318.YahooMailNeo@web181706.mail.ne1.yahoo.com> <1390592477.75634.YahooMailNeo@web181705.mail.ne1.yahoo.com> From: Paul Davis Date: Fri, 24 Jan 2014 12:25:10 -0800 Message-ID: Subject: Re: Replication of attachment is extremely slow.. LOGGED INFORMATION To: "user@couchdb.apache.org" , Scott Weber Cc: "replication@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The important thing to note here is that test 1 is using URLs for databases where tests 2 and 3 are using internal replication. Reading the logs it shows that the request to write the attachment took about 72 seconds. Out of curiosity could you rerun test 3 twice more with the following JSON bodies: {"from":"http://localhost:5984/from", "to":"to"} {"from":"from", "to":"http://localhost:5984/to"} This should narrow down if there's a problem with reading attachments, writing attachments, or some weird interplay between reading and writing attachments. If it turns out that the only slow version is when both are using the "http://localhost:5984/dbname" versions then can you run one more test: {"from":"http://127.0.0.1:5984/from", "to":"http://localhost:5984/to"} If that's also slow then we probably have a weird problem with the multipart code (fun!). If its not slow then most likely this is a bug in the HTTP worker pool implementation (also fun!).