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 EC56310E8C for ; Mon, 29 Jul 2013 18:47:15 +0000 (UTC) Received: (qmail 64106 invoked by uid 500); 29 Jul 2013 18:47:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 64053 invoked by uid 500); 29 Jul 2013 18:47:12 -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 64036 invoked by uid 99); 29 Jul 2013 18:47:12 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 18:47:12 +0000 Received: from localhost (HELO mail-vc0-f170.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 18:47:11 +0000 Received: by mail-vc0-f170.google.com with SMTP id kw10so2388197vcb.29 for ; Mon, 29 Jul 2013 11:47:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=36grtVWzHbGKipXY/jkPyMPhdSDCX7zpo8GnUWp/arY=; b=jmRWxkwoCaabEU85S7IGDz5xKoe7VPVenwcEN7zAgUGvxBWgG55qnyYIz9xicMby5t DxlBtniaOBP//5IdAcSzUtke3v66kRHNkPYwd4fkiNOBQSRZ2XiLU9m+TBOaC502c1Uo I+hvsxYuad1ewS09U5+UCzEaYIAgQcyxIvpg2lUuOGDYifFmKBFX4j6J2tzuBqRHgX4r xt/04dwxjvuWnfDHy6Ns9SB/Dg/eKav3LLWfsB2qfE8NIQFyj55922VPE5cdRiz3qyGD pygXGyM+vaJWQE+AppiGefMoQFw/1YljkhD/LYYf6/GC0WeUfQVPqetCq1XUekr6iFYe Z+Dw== MIME-Version: 1.0 X-Received: by 10.58.34.178 with SMTP id a18mr22213345vej.86.1375123630265; Mon, 29 Jul 2013 11:47:10 -0700 (PDT) Received: by 10.220.171.138 with HTTP; Mon, 29 Jul 2013 11:47:10 -0700 (PDT) In-Reply-To: <20130729183736.GF31164@translab.its.uci.edu> References: <20130729183736.GF31164@translab.its.uci.edu> Date: Mon, 29 Jul 2013 19:47:10 +0100 Message-ID: Subject: Re: Two way replication question From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 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. 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