Cassandra 4.0 vs. Cassandra 3.11: Comparing Performance

TL;DR Cassandra 4.0 vs Cassandra 3.0 Results

Test Setup

Limitations of Our Testing

Throughputs and Latencies

  • “Real-life” (Gaussian) distribution, with sensible cache-hit ratios of 30–60%
  • Uniform distribution, with a close-to-zero cache hit ratio, which we’ll call “disk-intensive”
  • “In-memory” distribution, expected to yield almost 100% cache hits, which we’ll call “memory-intensive”
  • 100% writes
  • 100% reads
  • 50% writes and 50% reads

“Real-life” (Gaussian) Distribution

Mixed Workload — 50% reads and 50% writes

Uniform Distribution (low cache hit ratio)

Writes Workload — Only Writes

Reads Workload — Only Reads

Mixed Workload — 50% reads and 50% writes

In-Memory Distribution (high cache hit ratio)

Writes Workload — Only Writes

Reads Workload — Only Reads

Mixed Workload — 50% reads and 50% writes

Administrative Operations

Adding Nodes

One New Node

Doubling the Cluster Size

Replace Node

Summary

  • Cassandra 4.0 has better P99 latency than Cassandra 3.11 by up to 100x!
  • Cassandra 4.0 throughputs can be up to 33% greater compared to Cassandra 3.11, but more importantly, under an SLA of < 10 ms in P99 latency, Cassandra 4.0 can be 2x to 3x more performing.
  • Cassandra 4.0 speeds up streaming up to 34% faster than Cassandra 3.11

Stay Tuned

Appendix

Cassandra 3.11 configuration

Cassandra 4.0 configuration

Cassandra-stress parameters

  • Background loads were executed in the loop (so duration=5m is not a problem).
  • REPLICATION_FACTOR is 3.
  • COMPACTION_STRATEGY is SizeTieredCompactionStrategy unless stated otherwise.
  • loadgenerator_count is the number of generator machines (3 for these benchmarks).
  • DURATION_MINUTES is 10 for in-memory benchmarks.

--

--

--

The monstrously-fast NoSQL database.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Awesome web framework for Golang!

Gone Viral API by Indie Music Bus in Development

Gone Viral API by Indie Music Bus in Development

Speaking at conferences can also shape your ability to influence decisions in your organization.

Telecommunications Monitoring. Comparative Analysis

Running Lastest Skopeo On RHEL 7

Azure to AWS map

How to Extract Data from Facebook using Graph API

CS371P Fall 2021 Week 4: Vishal Tak

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ScyllaDB

ScyllaDB

The monstrously-fast NoSQL database.

More from Medium

Using the TiDB Upgrade Toolkit to Guarantee a Safe Database Upgrade

Hybrid Local Clock in Rust

Apache ShardingSphere is on the Stack Overflow Podcast, InfoQ and FOSDEM!

One Way to Store Money in PostgreSQL Database and A Benchmark against Its Alternative