incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <mail.list.steel.men...@gmail.com>
Subject RE: tool to locate all replica of one key
Date Thu, 17 Dec 2009 02:19:33 GMT
Thank you Jonathan!!

---------END----------


-----Original Message-----
From: Jonathan Ellis [mailto:jbellis@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,  <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