You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by tinhuty he <ti...@hotmail.com> on 2011/04/14 18:32:44 UTC

which nodes contain the data? column family as indexes?

I just started 5 nodes in a cluster and set a replica factor of 3 on a keyspace ks. My question is how do I know which 3 nodes will contain the data of this keyspace(or particular column family in this keyspace)? 

I often read that “use a separate column family for storing our indexes”, here is link for that(http://www.datastax.com/docs/0.7/data_model/cfs_as_indexes), but it doesn’t have more details. Could some one point me to more detailed documentation and samples for this?

Thanks

Re: which nodes contain the data? column family as indexes?

Posted by aaron morton <aa...@thelastpickle.com>.
By default all data for a keyspace, and it's CFs, are spread out over all nodes in the cluster.

If you want to see which endpoints have data for a particular key there is an operation on the o.a.c.db.StorageService MBean you can use via JConsole. Some (out of date) docs here may help http://wiki.apache.org/cassandra/JmxInterface#org.apache.cassandra.service.StorageService.Operations.getNaturalEndpoints

Lots of articles here 
http://wiki.apache.org/cassandra/ArticlesAndPresentations

Aaron


On 15 Apr 2011, at 04:32, tinhuty he wrote:

> I just started 5 nodes in a cluster and set a replica factor of 3 on a keyspace ks. My question is how do I know which 3 nodes will contain the data of this keyspace(or particular column family in this keyspace)?
>  
> I often read that “use a separate column family for storing our indexes”, here is link for that(http://www.datastax.com/docs/0.7/data_model/cfs_as_indexes), but it doesn’t have more details. Could some one point me to more detailed documentation and samples for this?
>  
> Thanks
>