Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 5304CD7CA for ; Tue, 6 Nov 2012 18:30:31 +0000 (UTC) Received: (qmail 1032 invoked by uid 500); 6 Nov 2012 18:30:30 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 998 invoked by uid 500); 6 Nov 2012 18:30:30 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 986 invoked by uid 99); 6 Nov 2012 18:30:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 18:30:30 +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 ted.dunning@gmail.com designates 74.125.83.42 as permitted sender) Received: from [74.125.83.42] (HELO mail-ee0-f42.google.com) (74.125.83.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 18:30:23 +0000 Received: by mail-ee0-f42.google.com with SMTP id l10so417114eei.15 for ; Tue, 06 Nov 2012 10:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=3gHyz08k4j+Of45YboGLyMVWyv71Fa09nUrag0ZPmwM=; b=NPbZYlDOEheDpkyvQHHE3jNrL9ajklkvxLxaR380FCBd10h8W+inr2zJ7cJWBaM6Uc 8rV5e7RVTg49NM8EUWBzij9pmSCw9vZT9JpyLSk2lKmI+tR6mZbbpRA9MQC0TYe7H05+ reaGD7ku7ZvfS1IznTCFtfesgN1cYDT5Q5FO1ePGIjiFx3IYoutIcEWDyvkP/e+zEa8b 4rIetdB5g9H4HbXigqsSEEMMJg/c2f77mesWFTqCFAlXDxaPAcvUS77YPIW0dhsdcxin Sn9OeL6ydGLDnfL6+DD0yp8q0yQCNZkfXIL9ikEdqHNP/SHW3YFwSOLhNk42HRHtbohI 6YAA== Received: by 10.14.207.68 with SMTP id m44mr6004639eeo.40.1352226603520; Tue, 06 Nov 2012 10:30:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.74.89 with HTTP; Tue, 6 Nov 2012 10:29:32 -0800 (PST) In-Reply-To: References: From: Ted Dunning Date: Tue, 6 Nov 2012 10:29:32 -0800 Message-ID: Subject: Re: question about data replication To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7b3a7fe25bd2b604cdd7ca58 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a7fe25bd2b604cdd7ca58 Content-Type: text/plain; charset=UTF-8 Implied by the number of nodes. On Tue, Nov 6, 2012 at 8:56 AM, Brian Tarbox wrote: > Ted, > Thanks. Is it an actual value I set in zoo.cfg or is it just implied by the > number of nodes in my cluster? > Sorry for being dense :-) > > Brian > > > On Tue, Nov 6, 2012 at 11:37 AM, Ted Dunning > wrote: > > > You specify the MINIMUM number of copies when you define the number of > > nodes in your ZK cluster. > > > > The idea is that ZK requires strong consistency and provides guarantees > to > > that effect. The only way to provide those guarantees is if a majority > of > > the ZK cluster agree to and persist all changes. That is in strong > > contrast to Cassandra which tries to provide availability instead of > > consistency. > > > > Since ZK requires a majority for every commit, a cluster defined with N > > nodes will require ceiling((N+1)/2) nodes to commit every change. > > Likewise, N is not flexible without some care to make sure that these > > guarantees are maintained. > > > > On Tue, Nov 6, 2012 at 6:50 AM, Brian Tarbox > > wrote: > > > > > I'm working with both Cassandra and Zookeeper so please excuse me if > this > > > is a dumb question but does Zookeeper allow/require me to specify the > > > number of copies of data (like Cassandra does) or is it simply the case > > > that if a majority of nodes are up then ALL of my data is available? > > > > > > Thanks. I'm guessing this should be obvious to me but searching the > > > various docs didn't yield a clear answer. > > > > > > Thanks again. > > > > > > Brian Tarbox > > > > > > -- > > > http://about.me/BrianTarbox > > > > > > > > > -- > http://about.me/BrianTarbox > --047d7b3a7fe25bd2b604cdd7ca58--