O'Reilly logo

Apache Cassandra Essentials by Nitin Padalia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data distribution

One of the key features of Cassandra is auto-sharding. Data is distributed among nodes in a cluster based on partition keys automatically. A partition key is a column or multiple columns, which are part of a primary key of a column family. Data is distributed based on the tokenized value calculated over the partition key. A partitioner determines how distribution tokens are calculated. Each node of Cassandra cluster its owns a range of tokens. A row is stored on the node that owns the respective token of the row's partition key.

A partitioner can be set using the configuration option partitioner in cassandra.yaml. The new cluster should go with Murmur3Partitioner, as it is a faster partitioner than older ones and also distributes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required