Home›Learn›Cassandra 4: running it as a DBRE
Cassandra · Chapter 4

Running Cassandra as a DBRE

What do I look at first?

The numbers I watch, the settings that matter, and the commands I use.

Chapter 4 · Running it

What I watch on Cassandra

Nodesall up and normalalert on any DN
Compactionspending taskswatch the trend
Droppedoverloaded nodesalert on any
Repairage vs gc_graceinside the window

Example dashboard: the thresholds are starting points I would tune per system, and the colors are made up for the picture.

SignalWhy I watch itWhere it comes from
Nodes upWith RF 3 at QUORUM you can lose one replica per range, not two.nodetool status
Read and write latency p99Coordinators wait for the slowest replica they need.client and table metrics
Pending compactionsA growing backlog means more SSTables per read and slower reads.nodetool compactionstats
Dropped messagesRequests a node gave up on because it was overloaded.nodetool tpstats
Time since last repairRepair must finish within gc_grace_seconds, or deleted data can come back.your repair tool
Tombstone warningsReads scanning many tombstones get slow, then fail.system.log
The settings that matter

Choose these per keyspace and per query

SettingDefaultWhat it trades
Replication factorset per keyspaceHow many copies. Three per data centre, with NetworkTopologyStrategy, is the usual choice.
Consistency levelper query; often LOCAL_ONE in the driversONE: fastest, can read stale data. QUORUM or LOCAL_QUORUM: reads see acknowledged writes. ALL: fails if any replica is down.
commitlog_syncperiodic, every 10 sbatch or group waits for the disk before acknowledging. Periodic relies on other replicas for safety.
Compaction strategySizeTiered is the long-standing defaultLeveled for read-heavy tables, TimeWindow for time series with TTLs. The Unified strategy in 5.0 can behave like either.
gc_grace_seconds864000, 10 daysHow long deletes are remembered. Run a full repair more often than this.
Partition keyyour choice, per tableDecides which nodes hold a row and how big a partition gets. The most important decision in a Cassandra design.
Check it yourself

The commands I run first

nodetool status                         # every node: up or down, load, ownership
nodetool tablestats chat.messages       # SSTables, partition sizes, tombstones per read
nodetool tablehistograms chat messages  # SSTables per read, partition size percentiles
nodetool compactionstats                # compactions running and pending
nodetool tpstats                        # thread pools, dropped messages, hints
nodetool repair -pr chat                # repair this node's primary ranges
cqlsh> CONSISTENCY QUORUM;
cqlsh> TRACING ON;                      # then run a query: where it spent its time, replica by replica
Measured on this site

Notebooks 7 and 9, Cassandra 5.0.9 in CI

Versions and licences. Cassandra 5.0 (September 2024; 5.0.9 in August 2026) added storage-attached indexes, vector search, the Unified Compaction Strategy, and trie-based memtables and SSTables. Cassandra 6.0 is in alpha in 2026 with Accord, ACID transactions across partitions, and transactional cluster metadata; check its status before you plan on it.

Next · chapter 5When it breaksPlaybooks, from the symptom to the fix← Chapter 3: High availability
Part 1 of 4 · Learn · 56 pagesAll pages

How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.

Start 1: the basicsStart 2: ten conceptsStart 3: how a query travelsStart 4: napkin mathThe courseShort videosPostgreSQL 1: why PostgreSQLPostgreSQL 2: how it stores your dataPostgreSQL 3: what happens on every writePostgreSQL 4: high availability with PatroniPostgreSQL 5: running it as a DBREPostgreSQL 6: when it breaksPostgreSQL on Kubernetes: CloudNativePGMySQL 1: why MySQLMySQL 2: how it stores your dataMySQL 3: what happens on every writeMySQL 4: high availability with InnoDB ClusterMySQL 5: running it as a DBREMySQL 6: when it breaksMySQL failover with OrchestratorMySQL on Kubernetes: the Percona operatorsMongoDB 1: why MongoDBMongoDB 2: how it stores your dataMongoDB 3: what happens on every writeMongoDB 4: high availability with replica setsMongoDB 5: running it as a DBREMongoDB 6: when it breaksMongoDB on Kubernetes: the Percona operatorB-tree and LSM treeRedis 1: why RedisRedis 2: how it stores your dataRedis 3: high availabilityRedis 4: running it as a DBRERedis 5: when it breaksCassandra 1: why CassandraCassandra 2: how it stores your dataCassandra 3: high availabilityCassandra 4: running it as a DBRECassandra 5: when it breaksVector databases 1: why vector searchVector databases 2: how it stores your dataVector databases 3: high availabilityVector databases 4: running it as a DBREVector databases 5: when it breaksDatabase familiesEngines side by sideQueries that look fine and are notLost updates and write skewMany servers 1: keep a copy runningMany servers 2: who is the leaderMany servers 3: CAP as settingsMany servers 4: unique IDsMany servers 5: split the dataMany servers 6: across servicesMany servers 7: a thousand databasesStaff path, zero to architect