On Wed, Dec 16, 2009 at 1:20 AM,  <[email protected]> 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.

Reply via email to