Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 5465 invoked from network); 1 May 2008 13:02:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 13:02:06 -0000 Received: (qmail 74439 invoked by uid 500); 1 May 2008 13:02:07 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 74411 invoked by uid 500); 1 May 2008 13:02:07 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 74400 invoked by uid 99); 1 May 2008 13:02:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 06:02:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 13:01:21 +0000 Received: from [192.168.1.33] (e179076141.adsl.alicedsl.de [::ffff:85.179.76.141]) (AUTH: LOGIN jan, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Thu, 01 May 2008 13:01:33 +0000 Message-Id: <55F937E1-4A5D-4FFD-A7D4-4DF2AD8719F9@apache.org> From: Jan Lehnardt To: couchdb-user@incubator.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: map-reduce question: map done on many servers Date: Thu, 1 May 2008 15:01:00 +0200 References: X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org Hello Krzysztof, On May 1, 2008, at 00:52, Krzysztof Kulewski wrote: > Hello, > I have a question for which I couldn't find solution on docs > available online. Please help: > Lets suppose that I have one couchdb server storing text documents. > I want to do some map reduce on it. Map part take very long time per > one doc, so I want to distribute maps between 20 map servers (btw. > maybe unreliable). And then somebody will do the reduce part. > As I can see, "CouchDB delegates computation of Views to external > query servers." But I want to use 20 separate machines for doing map > part to obtain 20x speed-up. > How to distribute this map part? Is there any pretty solution out of > the box? This is not yet possible out of the box. You could probably achieve this by writing your own view server component that distributes the map requests that CouchDB sends in. For a reference view server see: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/server/main.js?revision=645661&view=markup You don't need to write it in JavaScript (the couch.ini lets you specify a daemon written in any language. The only thing you need to make sure is that the interface to CouchDB behaves the same as the original view server. Cheers Jan --