8. Monitoring
As the old systems adage goes, a service doesn’t exist unless it’s monitored. In this chapter, we will cover the basics of monitoring Cassandra. These include file-based logging, inspection of the JVM, and monitoring of Cassandra itself.
Logging
Under the covers, Cassandra uses the standard Java log library Log4j. Log4j is another Apache project that enables the capability to control the granularity of log statements using a configuration file. If you want to find out more about what is happening on a particular node than what nodetool
and JMX MBeans (which we will cover in more detail later in the chapter) are telling you, you can change the logging levels.
As a front end to the Log4j back end, Cassandra uses Simple Logging Façade ...
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.