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 EF23BDD27 for ; Thu, 4 Oct 2012 19:53:16 +0000 (UTC) Received: (qmail 70751 invoked by uid 500); 4 Oct 2012 19:53:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70707 invoked by uid 500); 4 Oct 2012 19:53:15 -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 70699 invoked by uid 99); 4 Oct 2012 19:53:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 19:53:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of snbartell@gmail.com designates 209.85.220.52 as permitted sender) Received: from [209.85.220.52] (HELO mail-pa0-f52.google.com) (209.85.220.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 19:53:05 +0000 Received: by mail-pa0-f52.google.com with SMTP id hz10so956933pad.11 for ; Thu, 04 Oct 2012 12:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=juMO/FLQG+7RkggtBLb9pQL2nldNm/CEOIqA3F9FTxA=; b=yZ7o35cUXMFVZUWziej8khegiOjOYZwX0b2nPmDIKeiUMsL7SKvN1s953/xwGa8Nrd K3ycZ5EQTHfmL/Mvr+ma+gGyYw5uUiJNKAUGz5GJyU4GCL0uItzmbpYGY+ioD8pKd3fN jY0IXD0qvaVsEdB8DyOmgCEyEDXpfVJ1HaTIk6m7cJ+2OkZrbj9R9tNY7Pbb1Lof9YiB i6f2albvcDRzXkDf18zC4TMm5Ih0LWDrwBzOeqhk+0M7Phf6B7vK7WkRpS+dl23hD5bS jR4wtQvv7A7fpMXOGCDDyz4NnSAtIxakHi3DdfmzZiPUCbZrrumiR//iNEUC9aWjG90o 6htg== Received: by 10.68.202.6 with SMTP id ke6mr24453039pbc.82.1349380364041; Thu, 04 Oct 2012 12:52:44 -0700 (PDT) Received: from sbartell.nevion.com (static-108-23-87-130.lsanca.fios.verizon.net. [108.23.87.130]) by mx.google.com with ESMTPS id pv9sm4784536pbb.67.2012.10.04.12.52.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 12:52:43 -0700 (PDT) From: stephen bartell Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_27D7F886-3BF9-4705-9C4D-9CF42005EC51" Subject: Re: Simple load-balancing replication best practices Date: Thu, 4 Oct 2012 12:52:38 -0700 In-Reply-To: To: user@couchdb.apache.org References: Message-Id: <92E31C9C-02DE-4DED-B8E9-05306B3FA73D@gmail.com> X-Mailer: Apple Mail (2.1257) --Apple-Mail=_27D7F886-3BF9-4705-9C4D-9CF42005EC51 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 4, 2012, at 9:48 AM, Dave Cottlehuber wrote: > On 4 October 2012 17:04, Steve Koppelman = wrote: >> Assuming a hubless (i.e. not master-slave) set of 4 couchdb 1.2.0 >> servers behind a load balancer, is there a recommended best-practice >> for setting up the replication relationships? I'm most interested in: >>=20 >> * Assuming the _replicator document is on one of the two nodes in a >> relationship, is there a preference for push vs. pull replication >> relationships? I seem to recall pull as being regarded as more >> reliable than push through 1.1.1. >=20 > Hope somebody else comments on this, I'm interested to know if this > still makes a difference. >=20 >> * The new docs highlight replication of the _replicator database as a >> way to establish many-to-many replication. This raises two questions. >>=20 >> 1. Is there harm in this sort of cluster to have all members to pull >> from one another, i.e., all of >> A->B >> A->C >> B->A >> B->C >> C ->A >=20 > Multimaster Meshed Magic :-) =85 only if _id's are unique. AFAIK, you need to address conflict resolution if _ids are similar. >=20 >> 2. Is there harm in full replication of _replicator if it results in >> documents that point a node to itself? That is, if I have a document >> that specifies a source of "localhost" and a destination as "node B", >> if this is replicated to node B this particular instance of the >> _replicator doc would set up an instance to replicate to itself, = which >> doesn't sound good. Is it important to do filtered replication of >> _replicator when taking this approach? >=20 > Should be fine. >=20 >> Rgds, etc. >>=20 >> -sk >=20 > You might want to look at BigCouch which handles a lot of this sort of > stuff for you, as well as sharded views. But the feature set isn't > quite parity yet. >=20 > A+ > Dave Stephen Bartell "The significant problems we face cannot be solved at the same level of = thinking we were at when we created them." -Einstein --Apple-Mail=_27D7F886-3BF9-4705-9C4D-9CF42005EC51--