Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 31298 invoked from network); 17 May 2010 07:02:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 07:02:32 -0000 Received: (qmail 52122 invoked by uid 500); 17 May 2010 07:02:31 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51875 invoked by uid 500); 17 May 2010 07:02:30 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 51867 invoked by uid 99); 17 May 2010 07:02:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 07:02:30 +0000 X-ASF-Spam-Status: No, hits=-303.8 required=10.0 tests=AWL,TO_NO_BRKTS_DIRECT X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 May 2010 07:02:29 +0000 Received: (qmail 31270 invoked by uid 99); 17 May 2010 07:02:09 -0000 Received: from localhost.apache.org (HELO [192.168.1.127]) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 07:02:09 +0000 Message-ID: <4BF0E9F3.6020106@apache.org> Date: Mon, 17 May 2010 00:02:11 -0700 From: Patrick Hunt User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: user@cassandra.apache.org CC: Chris Goffinet Subject: Re: zookeeper, how do you feed the pets? References: <2CA40A44-6F19-472D-B335-203298F9F190@chrisgoffinet.com> In-Reply-To: <2CA40A44-6F19-472D-B335-203298F9F190@chrisgoffinet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, ZK uses a quorum protocol (similar but not the same as paxos) for writes, as a result it's sensitive to inter-server latency. (however reads are always local and therefore not effected) Running a cluster fully w/in a colo you can achieve 15k writes/second, with a cluster distributed across a wan the write performance will be lower. You can see some detail on in-colo performance here http://bit.ly/4B8gC7 and here http://bit.ly/4ekN8G Regards, Patrick On 05/16/2010 07:10 PM, Chris Goffinet wrote: > If you are running multiple datacenters, intend to have a lot of writes for counters, I highly advise against it. We got rid of ZK because of that. > > -Chris > > On May 16, 2010, at 7:04 PM, S Ahmed wrote: > >> Can someone quickly go over how you go about using zookeeper if you want to store counts and have those counts be accurate? >> >> e.g. in digg's case I believe, they are using zookeeper so they can keep track of digg's for a particular digg story. >> >> Is it a backend change only and then storing API calls are uneffected? is it a config issue ? >> >> What are the ramifications of using this addon, are writes slower because you have to wait for the write to propogate to all the servers? >