Vnodes

Newer versions of Apache Cassandra have an option to use virtual nodes, better known as vnodes. Using vnodes, each node is assigned several non-contiguous token ranges. This helps the cluster to better balance its data load:

Node #

Token ranges

0

79935 to -92233, -30743 to -18446, 55341 to 67638

1

-92232 to -79935, -61488 to 61489, 43043 to 55340

2

-79934 to -67638, -43041 to -30744, 67639 to 79935

3

-67637 to -55340, 61490 to 18446,18447 to 30744

4

-55339 to -43042, -18445 to -61489, 30745 to 43042
Table 2.2: An example of the token range distribution for a five-node cluster using vnodes. Each node is assigned responsibility for three, non-contiguous token ranges. Smaller numbers were used in ...

Get Mastering Apache Cassandra 3.x - Third Edition 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.