Question about Insert Time with multiple node

2009-12-16 Thread Richard Grossman
Hi I think someone ask already similar but can't find where. On 1 machine standalone I insert data I get ~850 rows / second On another machine I make exactly the same operation I get ~900/1000 rows / second Now I remove all the data from the 2 machines. Take exactly the same storage-conf.xml

Re: Question about Insert Time with multiple node

2009-12-16 Thread Jonathan Ellis
Sounds like you are using a single thread, so the increased latency is artificially reducing your numbers. Add more threads (stress.py uses 50 by default) to get more throughput. (Also true even for a single node, but more noticable when you add network overhead to the cluster.) -Jonathan On

Re: tool to locate all replica of one key

2009-12-16 Thread Jonathan Ellis
On Wed, Dec 16, 2009 at 1:20 AM, mail.list.steel.men...@gmail.com wrote: 1. Does anyone know how to locate all replica(on which node) of one key (for monitor purpose)? Or any API can use? StorageService.getNaturalEndpoints(StorageService.getPartitioner().getToken(key)) will do that, but it's

Re: date range queries

2009-12-16 Thread Adam Fisk
Fair enough, Jonathan. I actually just tracked it down -- the problem was between my keyboard and my chair as usual. I neglected to comment out the following call on my SlicePredicate: sp.setColumn_names(Arrays.asList(toBytes(my_column_name))); That call made sense for columns, but not for

TimedOutException

2009-12-16 Thread Ramzi Rabah
We are observing increasing number of TimedOutExceptions in cassandra 0.5 trunk although the load seems fairly low (about 400 reads/writes per second). cfstats reports that operations are taking less than 2 ms on average. 2 Things I have noticed looking at the source code. 1- TimedOutExceptions

Re: date range queries

2009-12-16 Thread Richard Grossman
I've the same requirement but in my case the date is the key of the CF so how to use the timeUUID if the date is the key and not a column ?? On Wed, Dec 16, 2009 at 8:29 PM, Jonathan Ellis jbel...@gmail.com wrote: On Wed, Dec 16, 2009 at 12:15 PM, Adam Fisk a...@littleshoot.org wrote: That

Re: TimedOutException

2009-12-16 Thread Jonathan Ellis
On Wed, Dec 16, 2009 at 12:46 PM, Ramzi Rabah rra...@playdom.com wrote: We are observing increasing number of TimedOutExceptions in cassandra 0.5 trunk although the load seems fairly low (about 400 reads/writes per second). cfstats reports that operations are taking less than 2 ms on average.

Re: create only - no update

2009-12-16 Thread gabriele renzi
On Wed, Dec 16, 2009 at 12:34 AM, Brandon Williams dri...@gmail.com wrote: On Tue, Dec 15, 2009 at 5:19 PM, Brian Burruss bburr...@real.com wrote: can the cassandra client (java specifically) specify that a particular put should be create only, do not update?  If the value already exists in

Re: create only - no update

2009-12-16 Thread Ville Lautanala
On Dec 16, 2009, at 22:31, gabriele renzi wrote: On Wed, Dec 16, 2009 at 12:34 AM, Brandon Williams dri...@gmail.com wrote: On Tue, Dec 15, 2009 at 5:19 PM, Brian Burruss bburr...@real.com wrote: can the cassandra client (java specifically) specify that a particular put should be create

Re: create only - no update

2009-12-16 Thread Jonathan Ellis
On Wed, Dec 16, 2009 at 2:31 PM, gabriele renzi rff@gmail.com wrote: is there a fundamental reason for not being able to provide a putIfAbsent-like abstraction in cassandra? Yes: there is no global master to serialize operations from multiple clients.

Re: date range queries

2009-12-16 Thread Jonathan Ellis
You can either write a TimeUUID Partitioner, if that is the only kind of key you have in your cluster, or use a different partitioner and prefix the keys w/ a date in a format that sorts correctly in whatever collation you are using, e.g. ISO 8601 for our standard OrderedPartitioner. On Wed, Dec

Thrift 0.2.0 release

2009-12-16 Thread Anthony Molinaro
Hi, So I seem to recall some sort of issues with the 0.2.0 release of thrift and cassandra. Were those ever resolved? Is it safe to use them together? Has anyone tested them? Thanks, -Anthony -- Anthony Molinaro

Re: Thrift 0.2.0 release

2009-12-16 Thread Jake Luciani
Would you accept a patch that fixes the Cassandra impl? Least we can do. On Dec 16, 2009, at 4:37 PM, Jonathan Ellis jbel...@gmail.com wrote: 0.2 shipped with a regression that breaks Cassandra's internal use of thrift (https://issues.apache.org/jira/browse/THRIFT-529), so Cassandra devs

Re: create only - no update

2009-12-16 Thread gabriele renzi
On Wed, Dec 16, 2009 at 10:16 PM, Jonathan Ellis jbel...@gmail.com wrote: On Wed, Dec 16, 2009 at 2:31 PM, gabriele renzi rff@gmail.com wrote: is there a fundamental reason for not being able to provide a putIfAbsent-like abstraction in cassandra? Yes: there is no global master to

RE: OOM Exception

2009-12-16 Thread Brian Burruss
sorry, thought i included everything ;) however, i am using beta2 From: Jonathan Ellis [jbel...@gmail.com] Sent: Wednesday, December 16, 2009 3:18 PM To: cassandra-user@incubator.apache.org Subject: Re: OOM Exception What version are you using? 0.5

RE: OOM Exception

2009-12-16 Thread Brian Burruss
attached ... the log starts when i restarted server. notice that not too far into it is when the other node went down because of OOM and i restarted it as well. From: Jonathan Ellis [jbel...@gmail.com] Sent: Wednesday, December 16, 2009 4:53 PM To:

Re: date range queries

2009-12-16 Thread Adam Fisk
Definitely. Against 0.9 right? On Wed, Dec 16, 2009 at 10:29 AM, Jonathan Ellis jbel...@gmail.com wrote: On Wed, Dec 16, 2009 at 12:15 PM, Adam Fisk a...@littleshoot.org wrote: That call made sense for columns, but not for SuperColumns of course, and that was the culprit. Ideally the various

RE: tool to locate all replica of one key

2009-12-16 Thread mail.list.steel.mental
Thank you Jonathan!! -END-- -Original Message- From: Jonathan Ellis [mailto:jbel...@gmail.com] Sent: Wednesday, December 16, 2009 11:05 PM To: cassandra-user@incubator.apache.org Subject: Re: tool to locate all replica of one key On Wed, Dec 16, 2009 at 1:20 AM,