Hi,

As per the Datastax Cassandra Documentation 1.2,

"for single data center deployments, tokens are calculated by dividing the hash range by the number of nodes in the cluster", *does it mean we have to recalculate the tokens of keys when nodes come and go?**
*
"for multiple data center deployments, tokens are calculated per data center so that the hash range is evenly divide for the nodes in each data center." *This is understandable, but when I go to the getToken method of RandomPartitioner, I can't find any datacenter-aware token calculation* *codes.

By the way, the documentation doesn't mention how Murmur3Partitioner calculate tokens for multiple data center. Assuming it doesn't calculate tokens per data center, what difference between Murmur3Partitioner and RandomPartitioner has made that unnecessary?

*Thanks.
*
*Manu Zhang*




*

Reply via email to