Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 157606C30 for ; Mon, 25 Jul 2011 17:36:36 +0000 (UTC) Received: (qmail 18564 invoked by uid 500); 25 Jul 2011 17:36:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18495 invoked by uid 500); 25 Jul 2011 17:36:33 -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 18480 invoked by uid 99); 25 Jul 2011 17:36:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 17:36:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of synfinatic@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 17:36:28 +0000 Received: by yxp4 with SMTP id 4so2949764yxp.31 for ; Mon, 25 Jul 2011 10:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=Edb+mhGflDhkIOtrFAK4padUYwFk7LsEhp8vByIlGpY=; b=KN2fHp/pTkJP2IrNjwylqxwx/25kOdRvOdn9gAB8k2PjQo7o1jb620KURNci7j+gOH lDbclcBXrLfHqiJwkiW1tecnmD0xJ8dY+ZwrELg/jJJ4gTrylaKq4bNBscAbkouG4HkC s6VuDQNR11Oa4PQt44fY9yfVqkzvWPAvxo4pk= Received: by 10.236.197.5 with SMTP id s5mr5767993yhn.72.1311615368146; Mon, 25 Jul 2011 10:36:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.171.12 with HTTP; Mon, 25 Jul 2011 10:35:48 -0700 (PDT) In-Reply-To: References: <4E29A50C.9080903@ihep.ac.cn> From: Aaron Turner Date: Mon, 25 Jul 2011 10:35:48 -0700 Message-ID: Subject: Re: Counter consistency - are counters idempotent? To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Jul 24, 2011 at 3:36 PM, aaron morton wro= te: > What's your use case ? There are people out there having good times with = counters, see > > http://www.slideshare.net/kevinweil/rainbird-realtime-analytics-at-twitte= r-strata-2011 > http://www.scribd.com/doc/59830692/Cassandra-at-Twitter It's actually pretty similar to Twitter's click counting, but apparently we have different requirements for accuracy. It's possible Rainbird does something on the front end to solve for this issue- I'm honestly not sure since they haven't released the code yet. Anyways, when you're building network aggregate graphs and fail to add the +100G of traffic from one switch to your site or metro aggregate, people around here notice. And people quickly start distrusting graphs which don't look "real" and either ignore them completely or complain. Obviously, one should manage their Cassandra cluster to limit the occurrence of Timeouts, but frankly I don't want to be paged at 2am to "fix" these kind of problems. If I knew "timeout" meant "failed to increment counter", I could spool my changes on the client and try again later, but that's not what timeout means. Without any means to recover I've actually lost a lot of reliability that I currently have with my single PostgreSQL server backed data store. Right now I'm trying to come up with a way that my distributed snmp pollers can build aggregates efficiently without counters, but that's going to add a lot of complexity. :( --=20 Aaron Turner http://synfin.net/=A0 =A0 =A0 =A0=A0 Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Win= dows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. =A0 =A0 -- Benjamin Franklin "carpe diem quam minimum credula postero"