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 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.