Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84492 invoked from network); 2 Nov 2010 09:20:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 09:20:25 -0000 Received: (qmail 39381 invoked by uid 500); 2 Nov 2010 09:20:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39185 invoked by uid 500); 2 Nov 2010 09:20:55 -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 39177 invoked by uid 99); 2 Nov 2010 09:20:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 09:20:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martinh@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 09:20:50 +0000 Received: by iwn37 with SMTP id 37so8140124iwn.11 for ; Tue, 02 Nov 2010 02:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=VXJDxWMS3vDqXcMbDIuulg7Th4HbZmwudUgQ0w9TREU=; b=YqJWEn46bJ3tj9VCF360kaHbf1SmRzQrg6PKptM5T/8/S0tcd2mgG8pBLZQwbJ0xi9 RdialKK2bRQRKN4euzNo6qmrwCE3zgln1fqp1uhQn+9Vn5BP4bP6Qc295uLTtODnsmQa rUG0DGrgq+pC4/4DbyhgpahB0uYHx0JZYgnRk= 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:content-type; b=c0h3p5tpRVcGQH/Kl5cKXYyMb++LvzPCzAgJiFGLIqYR7xK47oZLTheaSNFOobyomX 7tMbw3Z0rKl08oj6LuTBAUfPky/qijCN2TCPe6BW4WHjdVSMc4h0id7uV+Uga6cJuDMj kvUpwlg4jAHQaPsF5G+u/IRB6MoLxDNdWcoMY= MIME-Version: 1.0 Received: by 10.231.16.204 with SMTP id p12mr3550589iba.194.1288689629955; Tue, 02 Nov 2010 02:20:29 -0700 (PDT) Sender: martinh@gmail.com Received: by 10.231.68.11 with HTTP; Tue, 2 Nov 2010 02:20:29 -0700 (PDT) In-Reply-To: References: <4CCE684E.6040600@makkiato.de> <12CF5A9C-0FE3-4BED-A51B-05DB34294CC7@apache.org> Date: Tue, 2 Nov 2010 09:20:29 +0000 X-Google-Sender-Auth: bK85Jx37WocCOt-p8_UvAnsv-x0 Message-ID: Subject: Re: Sharing design documents between DBs From: Martin Higham To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000325572ea69e8b9104940e6f55 --000325572ea69e8b9104940e6f55 Content-Type: text/plain; charset=ISO-8859-1 Thanks, I wasn't aware of the no IP connections required replication. I wonder whether this works on a BigCouch cluster? Martin On 1 November 2010 17:46, Benjamin Young wrote: > Martin, > > I'm not sure what your setup is, but if you had an "app" database (the > authoritative db for the _design doc you want to share with customers) on > the same instance of CouchDB with the customer's db's, then your > replication > requests would all be local--no IP connections what so ever. > > To do that in a multi-instance scenario, you could simply have the app db's > continuously replicate between the instances, and locally replication to > the > customer db's on each particular instance. Or, if you don't want to use > replication between your instances, you could push your changes into the > "app" db's on each of the instances. In either case, you'd only be > generating HTTP traffic on the pushing of the app and/or replication of the > "app" db's between the machines--so, very low network overhead in either > case. > > Later, > Benjamin > > On Mon, Nov 1, 2010 at 11:10 AM, Martin Higham >wrote: > > > 'Continuous' replication to thousands of databases means thousands of > > permanent IP connections. The alternative is that you write a script that > > fires off replication requests in sequence for all your databases to > > perform > > the update. As you say, this shouldn't occur often. > > > > Martin > > > > On 1 November 2010 14:48, Benjamin Young wrote: > > > > > Martin, > > > > > > Why not? It's only going to be sending changes. Unless you're > constantly > > > updating your app installation or those changes are massive, you > > shouldn't > > > run into any trouble. > > > > > > Your other option is the "middle-ware" setup, but then you'd loose the > > > power > > > of application replication. > > > > > > Thoughts? > > > > > > Later, > > > Benjamin > > > > > > On Mon, Nov 1, 2010 at 10:30 AM, Martin Higham > > >wrote: > > > > > > > Until you have one DB per user and then you're looking at replicating > > the > > > > design doc to many thousands of databases and continuous replication > > > > doesn't > > > > make sense > > > > > > > > Martin > > > > > > > > On 1 November 2010 14:11, Benjamin Young > > wrote: > > > > > > > > > Hey Gregor, > > > > > > > > > > If you setup continuous replication between your various customer > > db's > > > > and > > > > > your primary application database (which would likely only contain > > the > > > > main > > > > > app's design doc), then publication of the app would automatically > be > > > > > "rolled out" to the various customer db's. Because these DB's would > > be > > > > > "standalone" versions of the app, they could even be on multiple > > hosts > > > > > running CouchDB, so you'd remove the single point of failure > problem > > > that > > > > > most web-apps have--as they run (often) through a single server for > > all > > > > > customers. > > > > > > > > > > Personally, that mode of "multi-tenant" app (via replication) is > > pretty > > > > > exciting, and opens up new ways of dealing with load and > application > > > > > distribution. Get's the mind reeling, or maybe that's the coffee I > > just > > > > > finished... :) > > > > > > > > > > Later, Gregor, > > > > > Benjamin > > > > > > > > > > On Mon, Nov 1, 2010 at 6:49 AM, Jan Lehnardt > wrote: > > > > > > > > > > > Hi Gregor, > > > > > > > > > > > > On 1 Nov 2010, at 08:12, Gregor Frey wrote: > > > > > > > > > > > > > Hi, > > > > > > > when I followed the discussion about the setup of CouchDB in a > > > hosted > > > > > > environment, I wondered whether it would be possible to share the > > > > > > application level software between multiple databases. This would > > > > enable > > > > > a > > > > > > real multi-tenant set-up. Otherwise you must duplicate the > > > application > > > > > with > > > > > > each new tenant. > > > > > > > Does anybody know whether and how CouchDB supports application > > > > sharing? > > > > > > > > > > > > CouchDB does not support application or document sharing over > > > > databases. > > > > > > But nothing stops you from gradually replicating a new design doc > > > (the > > > > > > application) to every database. > > > > > > > > > > > > Cheers > > > > > > Jan > > > > > > -- > > > > > > > > > > > > > > > > > > > > > > > > > > > --000325572ea69e8b9104940e6f55--