Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 10499 invoked from network); 14 Nov 2008 03:22:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 03:22:41 -0000 Received: (qmail 79321 invoked by uid 500); 14 Nov 2008 03:22:48 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 79286 invoked by uid 500); 14 Nov 2008 03:22:48 -0000 Mailing-List: contact couchdb-dev-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-dev@incubator.apache.org Received: (qmail 79275 invoked by uid 99); 14 Nov 2008 03:22:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 19:22:48 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FS_REPLICA,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 74.125.44.154 as permitted sender) Received: from [74.125.44.154] (HELO yx-out-1718.google.com) (74.125.44.154) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 03:21:27 +0000 Received: by yx-out-1718.google.com with SMTP id 36so555907yxh.0 for ; Thu, 13 Nov 2008 19:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=NK+DgtJcT8ZZ2C3Jo+B/NNIpiQxAE2AWBx5oNtM7qnA=; b=VwL06ofcY+jPhmpT3RYsfFhH/wHAWnTd9Y2U1gyg4yQ7DZzsO1NzyvmJLuB6wY5BZ6 zkfyEYA2IU14owuUCoM7r74TiDQgt5U5C6pPapvFoTlZnfBbq4jKpDhZwE17wrqQtJ6y JOU3J4nWdOgmfbsrzWYgLtMc7KOHhNs1TT4S4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=KLI5LcxdFoz9e40iQ+O5qvhFax/JJOH/5ouh3vXGMkBR5TEjfbYDDXYvds2fgcQmvT ixZv1DCzXp6cTgcWpJMc89TubDayhrKc6ECK3BmereCp+00GF9TCE4adA7EO/xh+TU1s UhvdTEqlfHW1lR9BIX4+ItL/AmEim4IOFumKE= Received: by 10.90.29.13 with SMTP id c13mr408155agc.107.1226632920685; Thu, 13 Nov 2008 19:22:00 -0800 (PST) Received: from ?10.0.1.3? (c-65-96-242-38.hsd1.ma.comcast.net [65.96.242.38]) by mx.google.com with ESMTPS id 20sm156763agd.35.2008.11.13.19.21.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 19:22:00 -0800 (PST) Message-Id: <24E04797-1833-4479-8B95-4929DDD424A2@gmail.com> From: Adam Kocoloski To: couchdb-dev@incubator.apache.org In-Reply-To: <58AB961A-A23C-46F7-9AF8-7A1181CFDDB7@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [jira] Updated: (COUCHDB-160) replication performance improvements Date: Thu, 13 Nov 2008 22:21:57 -0500 References: <1324923413.1226429744367.JavaMail.jira@brutus> <9BBA8641-6BA6-49AB-BBF3-1D12F6F2726A@apache.org> <58AB961A-A23C-46F7-9AF8-7A1181CFDDB7@gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org On Nov 11, 2008, at 9:54 PM, Adam Kocoloski wrote: > I tried to do some testing with large (>1MB) binary attachments this > afternoon and ran into a lot of stability issues at high > concurrency. Quite a few of the replicator's HTTP processes (both > GET and POST) died gruesome deaths with session_remotly_closed errors. Hi, just to follow up, those session_remotly_closed errors were unrelated to the patch I posted. The patch I posted definitely uses more memory for large documents than the trunk code since it buffers multiple docs at once, but I'd argue that trunk's handling of these large documents is suboptimal anyway. I tried replicating a DB with 10 2.3MB documents over HTTP; trunk required well over 100 MB to get this done. Perhaps there's a way to stream attachments separately during replication instead of using attachments=true and going through the whole Base64 conversion. Regards, Adam