How to determine which node(s) an insert would go to in C* 2.0 with vnodes?

2013-10-08 Thread Sameer Farooqui
Hi, When using C* 2.0 in a large 100 node cluster with Murmer3Hash, vnodes and 256 tokens assigned to each node, is it possible to find out where a certain key is destined to go? If the keyspace defined has replication factor = 3, then a specific key like 'row-1' would be destined to go to 3

RE: How to determine which node(s) an insert would go to in C* 2.0 with vnodes?

2013-10-08 Thread Christopher Wirt
In CQL there is a token() function you can use to find the result of your partitioning schemes hash function for any value. e.g. select token(value) from column_family1 where partition_column = value; You then need to find out which nodes are responsible for that value using nodetool ring

Re: How to determine which node(s) an insert would go to in C* 2.0 with vnodes?

2013-10-08 Thread Kais Ahmed
hi, you can try : nodetool getendpoints keyspace cf key - Print the end points that owns the key 2013/10/8 Christopher Wirt chris.w...@struq.com In CQL there is a token() function you can use to find the result of your partitioning schemes hash function for any value. ** ** e.g.