Book Image

Apache Cassandra Essentials

By : Nitin Padalia
Book Image

Apache Cassandra Essentials

By: Nitin Padalia

Overview of this book

Apache Cassandra Essentials takes you step-by-step from from the basics of installation to advanced installation options and database design techniques. It gives you all the information you need to effectively design a well distributed and high performance database. You’ll get to know about the steps that are performed by a Cassandra node when you execute a read/write query, which is essential to properly maintain of a Cassandra cluster and to debug any issues. Next, you’ll discover how to integrate a Cassandra driver in your applications and perform read/write operations. Finally, you’ll learn about the various tools provided by Cassandra for serviceability aspects such as logging, metrics, backup, and recovery.
Table of Contents (14 chapters)
Apache Cassandra Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Monitoring a Cassandra cluster


Monitoring is an important aspect of running our Cassandra server healthy and debugging and fine tuning it. Cassandra provides its activity information in the form of logs. It also captures various metrics that can be monitored using the JMX interface or nodetool utility provided by Cassandra. Let's discuss these in detail in the following sections.

Use logging for debugging

Cassandra logs its activities in a system log file called system.log. This file can be found at <Cassandra-installation-director>/log for tar-based installations and in the /var/log/Cassandra directory for package-based installations. Cassandra used the Apache Log4j library prior to version 2.1, and it has used the Logback library to dump logs since version 2.1. It uses various logging levels to log information appropriately. The default log level enabled is INFO, hence we can see various informational messages logged in this file. If a failure happens, then it'll also be logged in...