cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: tool to locate all replica of one key
Date Wed, 16 Dec 2009 15:05:03 GMT
On Wed, Dec 16, 2009 at 1:20 AM,  <mail.list.steel.mental@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 not exposed via a tool yet.

> 2. If one node down, can cassandra re-replicate missing rows automatically? Or any utils
can do it on demand?

Cassandra assumes that a node that is down will be brought back up,
unless you use "nodeprobe removetoken" to tell it the node is gone for
good.  If you do that, it will re-replicate data.

> 2. If one node added, can cassandra re-balance automatically? Or any utils can do it
on demand?

Yes.  See http://wiki.apache.org/cassandra/Operations, specifically
the Bootstrap section, but you should read the parts before that too
for background.

Mime
View raw message