Re: Counter question

2012-03-29 Thread Tamar Fraenkel
Thanks! will do. Tamar *Tamar Fraenkel * Senior Software Engineer, TOK Media [image: Inline image 1] ta...@tok-media.com Tel: +972 2 6409736 Mob: +972 54 8356490 Fax: +972 2 5612956 On Thu, Mar 29, 2012 at 12:11 PM, Shimi Kiviti wrote: > You set the consistency with every request. > U

Re: Counter question

2012-03-29 Thread Shimi Kiviti
You set the consistency with every request. Usually a client library will let you set a default one for all write/read requests. I don't know if Hector lets you set a default consistency level per CF. Take a look at the Hector docs or ask it in the Hector mailing list. Shimi On Thu, Mar 29, 2012

Re: Counter question

2012-03-29 Thread Paolo Bernardi
On Thu, 2012-03-29 at 11:47 +0200, Tamar Fraenkel wrote: > Can this be set on a CF basis. > Only this CF needs higher consistency level. The consistency level of read/write operations is specified at each single read/write function call. This means that you have to use the desired consistency leve

Re: Counter question

2012-03-29 Thread Tamar Fraenkel
Can this be set on a CF basis. Only this CF needs higher consistency level. Thanks, Tamar *Tamar Fraenkel * Senior Software Engineer, TOK Media [image: Inline image 1] ta...@tok-media.com Tel: +972 2 6409736 Mob: +972 54 8356490 Fax: +972 2 5612956 On Thu, Mar 29, 2012 at 10:44 AM, Shim

Re: Counter question

2012-03-29 Thread Shimi Kiviti
Like everything else in Cassandra, If you need full consistency you need to make sure that you have the right combination of (write consistency level) + (read consistency level) if W = write consistency level R = read consistency level N = replication factor then W + R > N Shimi On Thu, Mar 29,

Counter question

2012-03-29 Thread Tamar Fraenkel
Hi! Asking again, as I didn't get responses :) I have a ring with 3 nodes and replication factor of 2. I have counter cf with the following definition: CREATE COLUMN FAMILY tk_counters with comparator = 'UTF8Type' and default_validation_class = 'CounterColumnType' and key_validation_c

Re: Hector counter question

2012-03-20 Thread Tamar Fraenkel
Thanks for the clarification, *Tamar Fraenkel * Senior Software Engineer, TOK Media [image: Inline image 1] ta...@tok-media.com Tel: +972 2 6409736 Mob: +972 54 8356490 Fax: +972 2 5612956 On Tue, Mar 20, 2012 at 2:16 PM, Richard Low wrote: > On 20 March 2012 06:51, Tamar Fraenkel w

Re: Hector counter question

2012-03-20 Thread Richard Low
On 20 March 2012 06:51, Tamar Fraenkel wrote: > But the increment is thread safe right? if I have two threads trying to > increment a counter, then they won't step on each other toe? That's right - you can have many threads incrementing the same counter and it's safe.  But reading and increment

Re: Hector counter question

2012-03-19 Thread Tamar Fraenkel
om:* Tamar Fraenkel [ta...@tok-media.com] > *Sent:* Monday, March 19, 2012 1:26 PM > *To:* cassandra-u...@incubator.apache.org > *Subject:* Hector counter question > > Hi! > > Is there a way to read and increment counter column atomically, > something like incrementAndGet

RE: Hector counter question

2012-03-19 Thread Jeremiah Jordan
No, Cassandra doesn't support atomic counters. IIRC it is on the list of things for 1.2. -Jeremiah From: Tamar Fraenkel [ta...@tok-media.com] Sent: Monday, March 19, 2012 1:26 PM To: cassandra-u...@incubator.apache.org Subject: Hector counter question Hi

Hector counter question

2012-03-19 Thread Tamar Fraenkel
Hi! Is there a way to read and increment counter column atomically, something like incrementAndGet (Hector)? Thanks, *Tamar Fraenkel * Senior Software Engineer, TOK Media [image: Inline image 1] ta...@tok-media.com Tel: +972 2 6409736 Mob: +972 54 8356490 Fax: +972 2 5612956 <>

Re: counter question

2011-06-24 Thread Ryan King
On Fri, Jun 24, 2011 at 6:08 AM, Joseph Stein wrote: > cool > now that 0.8 is out any chance Rainbird is going to be open sourced? Not anytime soon. We're busy launching a bunch of stuff (some of which you'll hear about at CassandraSF). -ryan > if not then I guess I will be building my own Scal

Re: counter question

2011-06-24 Thread Joseph Stein
cool now that 0.8 is out any chance Rainbird is going to be open sourced? if not then I guess I will be building my own Scala campaign, advertising counter layer over Cassandra also with de-normalized time dimensions =8^) [which is fine by me (looking forward to it actually) but I would rather im

Re: counter question

2011-06-24 Thread Sasha Dolgy
twitter uses it in production http://www.slideshare.net/kevinweil/rainbird-realtime-analytics-at-twitter-strata-2011 http://techcrunch.com/2011/02/04/twitter-rainbird/ I have had it implemented a little over a month now, and haven't had any problems with it ... although, the scale isn't quite twi

counter question

2011-06-24 Thread Joseph Stein
Are 0.8 counters ready for primetime real-time analytics (I have read the technical limitations which are not frightening but good to know so to deal with it in code) looking for opinions/experience on it let me know. not that they wouldn't be I guess what I am really asking is if I am the firs