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 621ABCFB8 for ; Tue, 5 Jun 2012 20:31:16 +0000 (UTC) Received: (qmail 27504 invoked by uid 500); 5 Jun 2012 20:31:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 27473 invoked by uid 500); 5 Jun 2012 20:31:14 -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 27461 invoked by uid 99); 5 Jun 2012 20:31:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 20:31:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon@cloudant.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 20:31:05 +0000 Received: by bkcjc3 with SMTP id jc3so6139410bkc.11 for ; Tue, 05 Jun 2012 13:30:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=y0utAyWkOGVsQlDoipy7XMt5RyLIxMvmNbAAK/WPkH0=; b=jG+TlS/xemW9CaWaA8ndSQsT5r4Uy1jqa3pgW0+UJ/tjkfBr0luW/zToJx48OCZ/RB PITnnkVEYcGZd629oVxZeNHZvSeAkzvZMuNQ7PvMOdZ7oK+dc2WXL/v8G29ojYTgH6Ax OPqUszvoPV8lBGkTwiF4OymObZQXBHmJmsXZDIpNOjUMb7E20Aeca80SmUnYyeQygIZL kxbSZ7uWS8zdJgQuYBlEWcdOmi71+Gn4tMuklW2uajDupHV1jUIrKxztWTZ3qG4GH4Eu up422ww8PqfL7g/v83xMTLdz+EvcTFIAd/CDeneKogSn+bIaXIlYa27qxsmdrRJB6xU7 5SLQ== Received: by 10.204.145.89 with SMTP id c25mr10604254bkv.5.1338928244743; Tue, 05 Jun 2012 13:30:44 -0700 (PDT) Received: from [192.168.100.249] (p54BD1E26.dip.t-dialin.net. [84.189.30.38]) by mx.google.com with ESMTPS id h18sm3398443bkh.8.2012.06.05.13.30.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jun 2012 13:30:44 -0700 (PDT) Date: Tue, 5 Jun 2012 22:30:41 +0200 From: Simon Metson To: user@couchdb.apache.org Message-ID: <5A895F4243314C8A97B77BCED0BE6338@cloudant.com> In-Reply-To: References: Subject: Re: in pull replication how source know how replicate? X-Mailer: sparrow 1.6 (build 1081.27) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fce6c71_1816f8c4_11e68" X-Gm-Message-State: ALoCoQn4O56NS5zNfe5gMO8BPgRTLsyjgWzZUhdvfPbzYbyP+BuTY/5P0jPVD6s4S2ivtBz4Ya4p --4fce6c71_1816f8c4_11e68 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey, Do you mean you want 180 instances replicating into the central DB? Why not have the remote instances push replicate? Then they all just need to know what the URL of the central instance is. As Jens has just said, setting that up as a continuous replication, and using the _replicator db will mean your remote instances should sync up asap. If you have docs being created on the remote nodes you could have your app record the username, machine name or some other id and a timestamp when writing a doc, then you can generate a view to see when the last document from a user/machine appeared. You need to be a bit careful, though. The question "who hasn't replicated into the central DB" can be a bit meaningless as there might be a good reason that an instance hasn't replicated yet (e.g. the guy's offline for a while), so tread with care. You don't want to put locking into the system, so you need to design for asynchronous, distributed updates. Cheers Simon On Tuesday, 5 June 2012 at 22:15, Gabriel Mancini de Campos wrote: > Hi Guys, > > I'm new in the list, > I have working on a project how will use the power of the replication of the > couchdb. > I have learn about this incredable nosql db, and it's a amazing pice of > software. > I have a doubt and i will share with you guys. > this is the senario, > 180 Distributers, each one with your couchdb installed and 1 load-balance > couchdb in amazonws. > this 180 Distributers not have an static IP, because this i will need put the > json config replication in them. > How i know, who not replicate with the amazonws-couch? > > please help > > thanks (sorry about my english) :-) --4fce6c71_1816f8c4_11e68--