In this lesson, we look at how to tune Cassandra to improve performance. There are a variety of settings in the configuration file and on individual tables. Although the default settings are appropriate for many use cases, there might be circumstances in which you need to change them. We’ll look at how and why to make these changes.
We also see how to use the cassandra-stress test tool that ships with Cassandra to generate load against Cassandra and quickly see how it behaves under stress test circumstances. We can then tune Cassandra appropriately and feel confident that we’re ready to deploy to a production environment.
What you’ll learn—and how you can apply it
You’ll learn how to monitor and analyze Cassandra performance. You’ll learn about Cassandra features such as caching, memtables, commit logs, SStables, hinted handoff, compaction, and threading to improve responsiveness, consistency, and speed and reduce data loss. We’ll also look at timeout properties and JVM settings.
This lesson is for you because…
You are a developer, database administrator, or architect who wants to learn how to tune Cassandra.
- Understanding of Cassandra architecture and data model.
- If you want to run cassandra-stress Cassandra installed with a running Cassandra cluster.
Materials or downloads needed
- A Cassandra cluster if you want to run cassandra-stress
Table of contents
- Managing Performance
- Commit Logs
- Hinted Handoff
- Concurrency and Threading
- Networking and Timeouts
- JVM Settings
- Using cassandra-stress
- Title: Optimizing Cassandra performance
- Release date: December 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491979693
You might also like
AWS Certified Solutions Architect Official Study Guide
Validate your AWS skills. This is your opportunity to take the next step in your career …
Modern Java in Action
Modern Java in Action connects new features of the Java language with their practical applications. Using …
Kubernetes Best Practices
In this practical guide, four Kubernetes professionals with deep experience in distributed systems, enterprise application development, …
Java Performance, 2nd Edition
Coding and testing are generally considered separate areas of expertise. In this practical book, Java expert …