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 39686B37E for ; Thu, 12 Jan 2012 11:10:44 +0000 (UTC) Received: (qmail 56866 invoked by uid 500); 12 Jan 2012 11:10:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56629 invoked by uid 500); 12 Jan 2012 11:10:21 -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 56498 invoked by uid 99); 12 Jan 2012 11:10:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 11:10: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 (athena.apache.org: domain of danbryan@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 11:10:09 +0000 Received: by lahg1 with SMTP id g1so1079067lah.11 for ; Thu, 12 Jan 2012 03:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=f4U40+Q4Uzlnsn6k/7jz7QQc1IYRkGYy5/csSZHBYZk=; b=qziXxkrlOz0dnWtkDM8biekgBSXEw6YnuYFjIbJaSczZhFxMZldAHYpviy6bWrV0yf s2Np7lpNX3zRwFu+1eYhbwQfyGcmJr/wtwLAM5+O8fn5F4Tb5G7xNOVKoGUF6xbEC/tu wA80DAGNHN+PVipeTmlWMDIANpYot+pwwew6U= MIME-Version: 1.0 Received: by 10.112.23.229 with SMTP id p5mr693312lbf.21.1326366509965; Thu, 12 Jan 2012 03:08:29 -0800 (PST) Received: by 10.152.10.1 with HTTP; Thu, 12 Jan 2012 03:08:29 -0800 (PST) Received: by 10.152.10.1 with HTTP; Thu, 12 Jan 2012 03:08:29 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Jan 2012 22:08:29 +1100 Message-ID: Subject: Re: How to setup an master - slave enviroment From: Daniel Bryan To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba308970ab205304b652c49c --90e6ba308970ab205304b652c49c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What's the reason for this? You have one-way replication set up between the master and slaves, I assume. Why don't you want the slaves to accept write operations? Perhaps your application could simply use a different subdomain or path for create/update/delete operations, and your slaves could have a different username and password set up for the admin just in case some writes arrive? Master/slave dichotomy doesn't really fit the Couch philosophy, though .. don't you want to Relax? On Jan 12, 2012 8:24 PM, "Gerardo Di Iorio" wrote: > Hi, > I have create an couchapp, and now i setup > an enviroment with an master and two slave. > I have setup with ngnix an reverse proxy balance for the two slave. > How to setup the the enviroment for update o insert document only on > master??? > > Regards > Gerardo Di Iorio > > -- > http://gerardodiiorio.blogspot.com/ > Lo scopo del lavoro =E8 quello di guadagnarsi il tempo libero (Aristotel= e) > The purpose of the job is to gain leisure (Aristotele) > --90e6ba308970ab205304b652c49c--