meaning of eventual consistency in Cassandra ?

2011-01-03 Thread Rajkumar Gupta
What is the meaning of eventual consistency in Cassandra when nodes in a single cluster do not mantain the copies of same data but rather data is distributed among nodes. Since a single peice of data is recorded at a single place(node),Why wouldn't Cassandra return the recent value from that single

For what parts of a social network is Cassandra a good fit ?

2011-01-03 Thread asil klin
For what parts of a social network is Cassandra a good fit ? Is it recommendable to throw all social network data into Cassandra datastore specifically, what about the data for newsfeed generation from user's network updates ?

Row Cache / Slice Cache

2011-01-03 Thread Daniel Doubleday
Hi, we have a couple of use cases with wide rows with a small portion of hot data in them. Example: Chatlog: { $userid1-$userid2: [{timestamp: message}, {timestamp: message} ...] } People tend to check only the most recent pages. So while the current row cache doesn't work with the

Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Sun, Jan 2, 2011 at 3:45 PM, vicent roca daniel wrote: > Hi guys, I need your help. > I'm trying to insert a column name of type LongType using the ruby wrapper, > but I can't get it working. > What I'm trying is something like this: >    app.insert(:Data, 'device1-cpu', { Time.now => 1234.to_s

Re: cassandra ruby undefined method

2011-01-03 Thread Ryan King
On Sat, Jan 1, 2011 at 2:42 PM, vicent roca daniel wrote: > Hi guys, I'm new in this list && Cassandra :) > I'm playing with Cassandra with the ruby wrapper, and I can't figurate out > what's happing with this error... > I have this: > app = Cassandra.new('AOM', servers = "127.0.0.1:9160", :transp

Re: Row Cache / Slice Cache

2011-01-03 Thread Jonathan Ellis
While I think "adaptively cache just hot parts of the row wherever they are" is not feasible, the limitations you describe should be fine. I think it's a clever idea, and probably widely useful. On Mon, Jan 3, 2011 at 10:48 AM, Daniel Doubleday wrote: > Hi, > > we have a couple of use cases with

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
Hi Ryan, When I insert the column, I don't get any error. But, when I inspect the contents, I don't see a valid number. also, If I try to do a range query, I'm not getting the expected results. On Mon, Jan 3, 2011 at 6:02 PM, Ryan King wrote: > On Sun, Jan 2, 2011 at 3:45 PM, vicent roca danie

Re: cassandra ruby undefined method

2011-01-03 Thread vicent roca daniel
Sorry for this message. I realize that I was doing it wrong. Thanks ryan. On Mon, Jan 3, 2011 at 6:03 PM, Ryan King wrote: > On Sat, Jan 1, 2011 at 2:42 PM, vicent roca daniel > wrote: > > Hi guys, I'm new in this list && Cassandra :) > > I'm playing with Cassandra with the ruby wrapper, and I

Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Mon, Jan 3, 2011 at 9:32 AM, vicent roca daniel wrote: > Hi Ryan, > When I insert the column, I don't get  any error. But, when I inspect the > contents, I don't see a valid number. > also, If I try to do a range query, I'm not getting the expected results. Please show the code you're using.

Re: Reclaim deleted rows space

2011-01-03 Thread Peter Schuller
> Lets assume I have: > * single 100GB SSTable file > * min compaction threshold is set to 2 > If I delete rows which are located in this file. Is the only way to "clean" > the deleted rows is by inserting another 100GB of data or by triggering a > painful major compaction? Major compaction does i

Re: Reclaim deleted rows space

2011-01-03 Thread Peter Schuller
> Major compaction does it, but only if GCGraceSeconds has elapsed. See: > >   http://spyced.blogspot.com/2010/02/distributed-deletes-in-cassandra.html But to be clear, under the assumption that your data is a lot smaller than the tombstones, a major compaction will definitely reclaim space even i

Re: meaning of eventual consistency in Cassandra ?

2011-01-03 Thread Peter Schuller
> What is the meaning of eventual consistency in Cassandra when nodes in > a single cluster do not mantain the copies of same data but rather > data is distributed among nodes. Since a single peice of data is > recorded at a single place(node),Why wouldn't Cassandra return the > recent value from t

Re: meaning of eventual consistency in Cassandra ?

2011-01-03 Thread Rajkumar Gupta
This means that nodes in cassandra cluster contain data that has been sharded onto serveral nodes as well as this sharded data may be replicated further across several nodes ? So cassandra storage utilizes both sharded as well as replication for load balancing? Is this correct ? On Mon, Jan 3, 201

Re: meaning of eventual consistency in Cassandra ?

2011-01-03 Thread Peter Schuller
> This means that nodes in cassandra cluster contain data that has been > sharded onto serveral nodes as well as this sharded data may be > replicated further across several nodes ? So cassandra storage > utilizes both sharded as well as replication for load balancing? Is > this correct ? Yes, sor

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
Hi again! code: require 'rubygems' require 'cassandra' app = Cassandra.new('AOM', servers = "127.0.0.1:9160") app.insert(:NumData, 'device1-cpu', { Time.now => 10.to_s }) storag-confl.xm. Thanks!! On Mon, Jan 3, 2011 at 6:52 PM, Ryan King wrote: > On Mon, Jan 3, 2011 at 9:32 AM,

Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Mon, Jan 3, 2011 at 12:56 PM, vicent roca daniel wrote: > Hi again! > code: > require 'rubygems' > require 'cassandra' > app = Cassandra.new('AOM', servers = "127.0.0.1:9160") > app.insert(:NumData, 'device1-cpu', { Time.now => 10.to_s }) I'm going to assume you're getting an exception here? I

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
hi, no I'n not getting any exception. The value gets inserted withou problem. If I try to convert to string I get: Cassandra::Comparable::TypeError: Expected "2011-01-03 22:14:40 +0100" to cast to a Cassandra::Long (invalid bytecount) from /Users/armandolalala/.rvm/gems/ruby-1.9.2-p0/gems/cassandr

Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Mon, Jan 3, 2011 at 1:15 PM, vicent roca daniel wrote: > hi, > no I'n not getting any exception. Then what problem are you seeing? -ryan > The value gets inserted withou problem. > If I try to convert to string I get: > Cassandra::Comparable::TypeError: Expected "2011-01-03 22:14:40 +0100" t

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
The problem I think I have is that I think I'm not storing the correct value. If I do this (for example): app.insert(:NumData, 'device1-cpu', { Time.now + 1 minut => 10.to_s }) app.insert(:NumData, 'device1-cpu', { Time.now + 1 minu => 10.to_s }) app.insert(:NumData, 'device1-cpu', { Time.now + 1

How can I correct this Cassandra load imbalance?

2011-01-03 Thread ian douglas
Hi everyone, I've been lurking in the #cassandra IRC channel lately looking for help on this, but wanted to try the mailing list as well. We have 3 nodes, and last week it was suggested that I run 'nodetool move' to reset our token values on the 3 nodes because they were randomly assigned wh

Does Cassandra run better on Amazon EC2 or Rackspace cloud servers?

2011-01-03 Thread Cassy Andra
My company is looking to develop a software prototype based off Cassandra in the cloud. We except to run 5 - 10 NoSQL servers for the prototype. I've read online (Jonathan Ellis was pretty vocal about this) that EC2 has some I/O issues. Is the general consensus to run Cassandra on EC2 or Rackspace?

Re: Does Cassandra run better on Amazon EC2 or Rackspace cloud servers?

2011-01-03 Thread Ryan King
On Mon, Jan 3, 2011 at 3:04 PM, Cassy Andra wrote: > My company is looking to develop a software prototype based off Cassandra in > the cloud. We except to run 5 - 10 NoSQL servers for the prototype. I've > read online (Jonathan Ellis was pretty vocal about this) that EC2 has some > I/O issues. Is

Re: Does Cassandra run better on Amazon EC2 or Rackspace cloud servers?

2011-01-03 Thread Dave Viner
Since it's all pay-for-use, you could build your system on both, then do whatever stress testing you want. The cassandra part of your app should be unchanged between different cloud providers. Personally, I'm using EC2 and don't have any complaints. Dave Viner On Mon, Jan 3, 2011 at 3:49 PM, R

Re: Does Cassandra run better on Amazon EC2 or Rackspace cloud servers?

2011-01-03 Thread Adrian Cockcroft
EBS volumes don't work well, but the instance local disks are fine on EC2. Also the smaller instance types are a lot slower on I/O than the bigger ones. We are using local disk on m2.2xl or 4xl (to get lots of RAM). Don't use the m1.small instances. Adrian From: Dave Viner mailto:davevi...@gma

Where is the email archive older than 2010-08-19?

2011-01-03 Thread wang bin
Hi All, I am fresh on Cassandra, and I want to know some topics have been discussed before. But I don't known how can I find the old topics before 2010-08-19. The oldest thread I found is http://www.mail-archive.com/user@cassandra.apache.org/mail15.html Can someone told me? Thank you. Bin

Re: Where is the email archive older than 2010-08-19?

2011-01-03 Thread Jonathan Ellis
http://mail-archives.apache.org/mod_mbox/cassandra-user/ On Mon, Jan 3, 2011 at 11:40 PM, wang bin wrote: > Hi All, > >     I am fresh on Cassandra, and I want to know some topics have been > discussed before. > But I don't known how can I find the old topics before 2010-08-19. > The oldest threa