vector clocks?

2009-12-06 Thread Ran Tavory
As a Cassandra newbe, after having read the Dynamo paper, I was wondering - how does Cassandra use timestamps? - Does it use them internally to resolve conflicts? - Does it expose vector clocks to clients when internal conflict resolution fails? Thanks

Re: vector clocks?

2009-12-07 Thread Ran Tavory
, 2009 at 12:34 AM, Kelvin Kakugawa kakug...@gmail.com wrote: Cassandra, right now, doesn't use vector clocks internally. However, an implementation is being worked on, here: https://issues.apache.org/jira/browse/CASSANDRA-580 -Kelvin On Sun, Dec 6, 2009 at 10:41 AM, Ran Tavory ran...@gmail.com

Images store in Cassandra

2009-12-12 Thread Ran Tavory
As we're designing our systems for a move from mysql to Cassandra we're considering moving our file storage to Cassandra as well. Is this wise? We're currently using mogilefs to store media items (images) of average size of 30Mb (400k images, and growing). Cassandra looks like a performance

Re: MultiThread Client problem with thrift

2009-12-22 Thread Ran Tavory
Would connection pooling work for you? This Java client http://code.google.com/p/cassandra-java-client/ has connection pooling. I haven't put the client under stress yet so I can't testify, but this may be a good solution for you On Tue, Dec 22, 2009 at 2:22 PM, Richard Grossman

Re: MultiThread Client problem with thrift

2009-12-22 Thread Ran Tavory
, Ran Tavory ran...@gmail.com wrote: Would connection pooling work for you? This Java client http://code.google.com/p/cassandra-java-client/ has connection pooling. I haven't put the client under stress yet so I can't testify, but this may be a good solution for you On Tue, Dec 22, 2009

Re: MultiThread Client problem with thrift

2009-12-22 Thread Ran Tavory
at 2:55 PM, Ran Tavory ran...@gmail.com wrote: I don't have a 0.5.0-beta2 version, no. It's not too difficult to add it, but I haven't done so myself, I'm using 0.4.2 On Tue, Dec 22, 2009 at 2:42 PM, Richard Grossman richie...@gmail.comwrote: Yes of course but do you have updated to cassandra

Cassandra guarantees reads and writes to be atomic within a single ColumnFamily.

2010-01-11 Thread Ran Tavory
The front page http://incubator.apache.org/cassandra/ states that Cassandra guarantees reads and writes to be atomic within a single ColumnFamily. What exactly does that mean, and where can I learn more about this? It sounds like it means that batch_insert() and batch_mutate() for two different

Re: Cassandra guarantees reads and writes to be atomic within a single ColumnFamily.

2010-01-13 Thread Ran Tavory
On Mon, Jan 11, 2010 at 3:01 PM, Ran Tavory ran...@gmail.com wrote: The front page http://incubator.apache.org/cassandra/ states that Cassandra guarantees reads and writes to be atomic within a single ColumnFamily. What exactly does that mean, and where can I learn more about this? It sounds

Re: How to unit test my code calling Cassandra with Thift

2010-01-24 Thread Ran Tavory
to the thrift interface. * Useful for unit testing, * * @author Ran Tavory (r...@outbain.com) * */ public class InProcessCassandraServer implements Runnable { private static final Logger log = LoggerFactory.getLogger(InProcessCassandraServer.class); CassandraDaemon cassandraDaemon; public

Re: How to unit test my code calling Cassandra with Thift

2010-02-13 Thread Ran Tavory
to keep the server alive. Thanks Richard On Sun, Jan 24, 2010 at 12:02 PM, Ran Tavory ran...@gmail.com wrote: Here's the code I've just written over the weekend and started using in test: package com.outbrain.data.cassandra.service; import java.io.File; import java.io.FileOutputStream

StackOverflowError on high load

2010-02-17 Thread Ran Tavory
I'm running some high load writes on a pair of cassandra hosts using an OrderPresenrvingPartitioner and ran into the following error after which one of the hosts killed itself. Has anyone seen it and can advice? (cassandra v0.5.0) ERROR [HINTED-HANDOFF-POOL:1] 2010-02-17 04:50:09,602

Re: StackOverflowError on high load

2010-02-17 Thread Ran Tavory
. disk too full is almost certainly actually the problem. created https://issues.apache.org/jira/browse/CASSANDRA-804 to fix this. On Wed, Feb 17, 2010 at 5:59 AM, Ran Tavory ran...@gmail.com wrote: no, that's not it, disk isn't full. After restarting the server I can write again. Still

Re: StackOverflowError on high load

2010-02-17 Thread Ran Tavory
Saloranta tsalora...@gmail.comwrote: On Wed, Feb 17, 2010 at 6:40 AM, Ran Tavory ran...@gmail.com wrote: If it's the data directory, then I have a pretty big one. Maybe it's something else $ df -h /outbrain/cassandra/data/ FilesystemSize Used Avail Use% Mounted on /dev/mapper

Re: StackOverflowError on high load

2010-02-20 Thread Ran Tavory
though test1 is not completely dead yet. On Thu, Feb 18, 2010 at 1:16 AM, Ran Tavory ran...@gmail.com wrote: I found another interesting graph, attached. I looked at the write-count and write-latency of the CF I'm writing to and I see a few interesting things: 1. the host test2 crashed

Re: StackOverflowError on high load

2010-02-21 Thread Ran Tavory
to be a real fix. Thanks On Sat, Feb 20, 2010 at 9:36 PM, Jonathan Ellis jbel...@gmail.com wrote: if OPP is configured w/ imbalanced ranges (or less balanced than RP) then that would explain it. OPP is actually slightly faster in terms of raw speed. On Sat, Feb 20, 2010 at 2:31 PM, Ran Tavory ran

Hector - a Java Cassandra client

2010-02-23 Thread Ran Tavory
I've written a java library for cassandra I've been using internally, would love to get your feedback and hope you find it useful. Blog post: http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/ Source: http://github.com/rantav/hector High level features: o A high-level object

Re: Hector - a Java Cassandra client

2010-02-23 Thread Ran Tavory
Grossman rich...@bee.tv wrote: Hi Ran, Is it support operation on super column ? Thanks On Tue, Feb 23, 2010 at 4:13 PM, Ran Tavory ran...@gmail.com wrote: I've written a java library for cassandra I've been using internally, would love to get your feedback and hope you find it useful. Blog

Re: MapReduce in Cassandra 0.6

2010-02-27 Thread Ran Tavory
fwiw, I read the instructions at contrib/word_count/README and it has like 3 manual steps, so using an embedded cassandra instance may simplify this into one single step and let the program do all setup and teardown it requires.

Re: Grails Cassandra plugin

2010-03-12 Thread Ran Tavory
great, I'm happy you found Hector useful :) btw, in hector 0.5.0-8 I added some interesting performance JMX counters so may be worth to update yours from 0.5.0-6 to -8 when you have time. On Fri, Mar 12, 2010 at 11:55 PM, Ned Wolpert ned.wolp...@imemories.comwrote: Document updated On Fri,