Difficulty: Intermediate
Estimated Time: 15 minutes

One of the secrets to Apache Cassandra's™ performance is the use of a ring that keeps track of tokens. This ring enables Cassandra to know exactly which nodes contain which partitions. The ring also eliminates any single points of failure.

In this scenario, you will:

  • Understand the Cassandra token ring
  • Create a two-node cluster

How Cassandra's ring works

Step 1 of 7

Step 1

We've already downloaded Cassandra for you.

On node2, we'll edit the cassandra.yaml file

Change the initial_token value and set it to 9223372036854775807 (note you need a space between the colon and the value). This node will manage the second half of the token range--the positive tokens.