Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Apache Cassandra - Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

By : Nishant Neeraj
4.6 (10)
close
close
Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

4.6 (10)
By: Nishant Neeraj

Overview of this book

The book is aimed at intermediate developers with an understanding of core database concepts who want to become a master at implementing Cassandra for their application.
Table of Contents (10 chapters)
close
close

Load balancing


A balanced Cassandra cluster is the one where each node owns an equal number of keys. This means when you query nodetool status, a balanced cluster will show the same percentage for all the nodes under the Owns or Effective Ownership columns. If the data is not uniformly distributed between the keys, even with equal ownership you will see some nodes are more occupied by the data than others. We use RandomPartitioner or Murmur3Partitioner to avoid this sort of lopsided cluster.

Note

Note that this section is valid for a setup that does not use vnodes. If you are using Cassandra Version 1.2 or a version after it with default settings, you can skip this section.

This section is specifically for a cluster that uses one token per Cassandra instance.

Anytime a new node is added or a node is decommissioned, the token distribution gets skewed. Normally, one always wants Cassandra to be fairly load balanced to avoid hotspots. Fortunately, it is very easy to load balance. The two-step load...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete