Virtual nodes

In earlier versions of Cassandra, prior to version 1.2, each node used to own only one token, and hence it was responsible for handling only one contiguous token range in the cluster ring. This mechanism was good but was slower and relatively harder to configure in following scenarios:

  • Configuring a cluster.

    While configuring a cluster, we need to calculate and assign tokens to each node manually.

  • Adding or removing a node

    When a node is added or removed, we need to do a token calculation again to rebalance the cluster. If a node is added, we need to assign a new token range to this node and reduce the token range of the rest of the nodes. Similarly, if a node is removed, we need to calculate the token range again so that a larger token ...

Get Apache Cassandra Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.