7. Maintenance

At this point, your cluster is up and running. There is data coming in and everything seems to be humming along. But Cassandra is not a set it and forget it system. There is maintenance required, and there are tools to help you perform the necessary maintenance tasks.

Understanding Nodetool

The most basic command that you should be familiar with when administering a Cassandra cluster is nodetool. nodetool is a command line interface to Cassandra cluster management. It can provide you with basic information about an individual node or all nodes in the cluster or ring.

As of Cassandra 1.2, nodetool provides the options shown in Listing 7.1

Listing 7.1. Nodetool output

 usage: java org.apache.cassandra.tools.NodeCmd --host <arg> ...

Get Practical Cassandra: A Developer’s Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.