Rebalance after adding new nodes

2010-02-11 Thread Weijun Li
When you add a new node, cassandra will pick the node that has the most data then split its token. In this case the data distribution among all nodes become uneven. What's the right strategy/steps to rebalance the node load after adding new nodes? Here's one example: I have a cluster of node A, B,

Expire keys/rows in cassandra

2010-02-11 Thread Weijun Li
Hello, Is there any way to expire keys/rows in cassandra based on their last-modification timestamp (if such timestamp exists)? It will be ideal place to modify if cassandra has a task/thread that periodically goes through all keys in a node. GC deletion marker? Without this kind of expiration-fe

Re: RackAwareStrategy - add the third datacenter to live cluster with replication factor 3

2010-02-11 Thread Jonathan Ellis
On Thu, Feb 11, 2010 at 3:29 PM, B. Todd Burruss wrote: > when using rack aware, RF=3, W=QUORUM ... does a write block until > response from both data centers? Quorum of 3 means 2, so it will block for first 2 replies, which usually won't include the other DC. BUT, remember it's asymmetrical. S

Re: RackAwareStrategy - add the third datacenter to live cluster with replication factor 3

2010-02-11 Thread B. Todd Burruss
when using rack aware, RF=3, W=QUORUM ... does a write block until response from both data centers? and if so is there a setting to make the write to the "second" data center async? On Thu, 2010-02-11 at 12:12 -0800, Jonathan Ellis wrote: > On Thu, Feb 11, 2010 at 1:53 PM, Weijun Li wrote: > >

Re: nodeprobe flush not implemented in 0.5?

2010-02-11 Thread Jonathan Ellis
cat bin/nodetool will show you what class is being invoked -- look for the $JAVA invocation On Thu, Feb 11, 2010 at 2:43 PM, Weijun Li wrote: > That works! Thanks gentlemen! Is there a manual for nodeprobe? Or could you > please point to me where is the code for handling these commands? > > -Weij

Re: nodeprobe flush not implemented in 0.5?

2010-02-11 Thread Weijun Li
That works! Thanks gentlemen! Is there a manual for nodeprobe? Or could you please point to me where is the code for handling these commands? -Weijun On Thu, Feb 11, 2010 at 12:01 PM, Chris Goffinet wrote: > "nodeprobe flush " > > On Thu, Feb 11, 2010 at 11:56 AM, Weijun Li wrote: > >> Hello,

Re: RackAwareStrategy - add the third datacenter to live cluster with replication factor 3

2010-02-11 Thread Jonathan Ellis
On Thu, Feb 11, 2010 at 1:53 PM, Weijun Li wrote: > Hello, > > I have a testing cluster with: A (dc1), B (dc1), C(dc2), D(dc2). The > replication factor is 2 so I assume each DC will have a complete copy of the > data. Also I'm using PropertyFileEndPointSnitch with rack.properties for the > dc and

Re: nodeprobe flush not implemented in 0.5?

2010-02-11 Thread Chris Goffinet
"nodeprobe flush " On Thu, Feb 11, 2010 at 11:56 AM, Weijun Li wrote: > Hello, > > I tried to run "nodeprobe flush" but it display the usage info without > doing anything? What are the list of supported command for nodeprobe? > > Thanks, > -Weijun > -- -Chris

Re: nodeprobe flush not implemented in 0.5?

2010-02-11 Thread Ramzi Rabah
You have to specify the keyspace. For example sh nodeprobe -host hostname flush Keyspace1 On Thu, Feb 11, 2010 at 11:56 AM, Weijun Li wrote: > Hello, > > I tried to run "nodeprobe flush" but it display the usage info without doing > anything? What are the list of supported command for nodeprobe?

nodeprobe flush not implemented in 0.5?

2010-02-11 Thread Weijun Li
Hello, I tried to run "nodeprobe flush" but it display the usage info without doing anything? What are the list of supported command for nodeprobe? Thanks, -Weijun

RackAwareStrategy - add the third datacenter to live cluster with replication factor 3

2010-02-11 Thread Weijun Li
Hello, I have a testing cluster with: A (dc1), B (dc1), C(dc2), D(dc2). The replication factor is 2 so I assume each DC will have a complete copy of the data. Also I'm using PropertyFileEndPointSnitch with rack.properties for the dc and rack settings. So, what's the steps to add another datacente

Re: OOM on restart

2010-02-11 Thread Jonathan Ellis
What version are you on these days? :) On Thu, Feb 11, 2010 at 12:11 PM, Anthony Molinaro wrote: > Hi, > >  I've been having nodes failing recently with OOM exceptions (not sure > why, but we have had an increase in traffic so that could be a cause). > Most nodes have restarted fine, one node how

OOM on restart

2010-02-11 Thread Anthony Molinaro
Hi, I've been having nodes failing recently with OOM exceptions (not sure why, but we have had an increase in traffic so that could be a cause). Most nodes have restarted fine, one node however, has been having problems restarting. It was failing with java.lang.OutOfMemoryError: Java heap spac