Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B87A10FA8 for ; Mon, 29 Jul 2013 19:15:13 +0000 (UTC) Received: (qmail 27689 invoked by uid 500); 29 Jul 2013 19:15:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 27659 invoked by uid 500); 29 Jul 2013 19:15:11 -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 27650 invoked by uid 99); 29 Jul 2013 19:15:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 19:15:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.200.36.30] (HELO translab.its.uci.edu) (128.200.36.30) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 19:15:06 +0000 Received: from translab.its.uci.edu (localhost.localdomain [127.0.0.1]) by translab.its.uci.edu (8.13.1/8.12.10) with ESMTP id r6TJEkBs023142 for ; Mon, 29 Jul 2013 12:14:46 -0700 Received: (from jmarca@localhost) by translab.its.uci.edu (8.13.1/8.13.1/Submit) id r6TJEkA1023141 for user@couchdb.apache.org; Mon, 29 Jul 2013 12:14:46 -0700 Date: Mon, 29 Jul 2013 12:14:46 -0700 From: James Marca To: "user@couchdb.apache.org" Subject: Re: Two way replication question Message-ID: <20130729191446.GJ31164@translab.its.uci.edu> Mail-Followup-To: "user@couchdb.apache.org" References: <20130729183736.GF31164@translab.its.uci.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jul 29, 2013 at 07:47:10PM +0100, Robert Newson wrote: > CouchDB will check that the current revision of every document is > present on the target and will skip copying it if it is. In your case, > the replication will not transfer any documents at all but will check > every id/rev pair which will take some time. Okay thanks. Is this also true if I pull and push from the same machine. That is, if I set up pull replication on A to pull from B, in parallel with the push from B to A? My understaing is that the two replication jobs (push A to B, pull B to A, both running on A) would be totally independent and would not share information about B's db state. Correct? Thanks, James > > B. > > > On 29 July 2013 19:37, James Marca wrote: > > Hi, > > > > I have two machines, A and B. I am running an analysis on A, saving > > the output to couchdb, and then replicating by push from A to B. > > > > B's database started life from this push replication, and has never > > been otherwise modified. So the two are more or less identical. > > > > What I want to do now is parallelize my work flow and run more > > analyses on B, save locally (to B's couchdb), and then replicate those > > changes to A. (The database is used both to save output, and also to > > keep track of what has been done already, so it is useful to keep the > > output db syncronized between all machines.) > > > > My question is whether replicating from B to A will require pushing > > all of the docs to A. This is an issue because my database is 21 GB > > and growing, and I'd rather not push all that data from B to A when I > > *know* the two are identical right now. > > > > Is there a way to set up replication to skip everything already there? > > Or to copy the replication state from A to B so that B knows that > > replication with A can start with new data only? > > > > If not, I can of course just save work done on B to the CouchDB on A > > directly, but I'd rather set it up so that the computation process > > always just hits couchdb on localhost, and let couchdb do the machine > > to machine copying. > > > > Thanks for any insights or pointers to the correct docs page, > > > > James Marca