About calculating tokens for single or multiple datacenters in Cassandra 1.2 and
later

Single datacenter deployments: Calculate tokens by dividing the hash range by the number
of nodes in the cluster.

Multiple datacenter deployments: Calculate the tokens for each datacenter so that the
hash range is evenly divided for the nodes in each datacenter.

For more explanation, see be sure to read the conceptual information mentioned above.

The method used for calculating tokens depends on the type of partitioner:

Calculating tokens for the Murmur3Partitioner

Use this method for generating tokens when you are not using virtual nodes (vnodes) and using
the Murmur3Partitioner (default). This
partitioner uses a maximum possible range of hash values from -263 to
+263-1. To calculate tokens for this partitioner:

DataStax is a registered trademark of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache Cassandra, Apache, Tomcat, Lucene, Solr, Hadoop, Spark, TinkerPop, and Cassandra are trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.