Failure modes
Runbooks that take you from what you see in a Nova cluster to what to do about it.
Nova keeps acknowledged records when a node or a dependency fails. What you see instead is waiting: appends that slow down or stall, opens that are refused for a while, and cleanup that falls behind. This page starts from each symptom, names the likely cause, and says what to do. Most failures clear on their own once the failed dependency returns; nodes rarely need a restart. Failure model explains why each failure behaves as it does.
Start with the two ages a healthy cluster keeps near zero. Read them from a node's metrics listener, at the address its --metrics-listen names; in Docker Compose the first node's is localhost:9191:
curl -s localhost:9191/metrics | grep -E '^nova_(wal_backlog_age_seconds|auditor_due_age_seconds)'| Symptom | Go to |
|---|---|
Appends hang, and nova_wal_backlog_age_seconds climbs | Writes stall |
| Appends succeed but take seconds | Writes are slow |
| Opens are refused as retryable for a long time | A stream will not open |
Clients get ResourceExhausted | Clients are refused |
NovaNodeSaturated or NovaNodeStranded fires | A saturated or stranded node |
nova_auditor_due_age_seconds climbs | Auditor delays |
| A node died, or might have | A node fails |
| Object storage is down or throttling | Object storage outage |
| The metadata store is down | Metadata store outage |
| Reads of stored history go to object storage more than usual | Object cache failure |
| An embedded oxia alert fires, or a decommission waits on draining replicas | Embedded oxia |
Writes stall
Producers block, nova_wal_backlog_age_seconds climbs past 30 s, and NovaWALBacklogAging fires. The node logs wal: publish waited on the backlog budget.
A node acknowledges an append once its records are in object storage, and records where they are in the metadata store afterwards. When that second step falls behind, acknowledged flights pile up until the backlog budget is full (1,024 flights or 4 GiB), and then new appends wait. WAL, slots and ledgers explains the budget.
To find the cause:
-
Read the stall's cause:
curl -s localhost:9191/metrics | grep '^nova_wal_backlog_stall_total'causeMeaning Next metastore_slowThe last metadata commit took over 1 s Check the metadata store: nova_kv_duration_seconds, and the Metadata performance dashboardabsorb_lagThe indexer cannot keep up, but each commit is fast Too many streams per pass; check nova_indexer_pass_duration_secondsand the node's CPUrolling,roll_pacerThe WAL is replacing a halted ledger See Writes are slow; a dry roll pacer fires NovaRollPacerDry -
If the node logs
indexer: a stream led here has no registry row, one stream blocks a ledger's indexing. Restore the row if it was lost, then drain the node withnova node drainto end the leadership. -
If none of these moves, take a goroutine dump (
/debug/pprof/goroutine?debug=1; see Profile a stuck process) to see which stage waits, then drain the node before restarting it. A drain hands its streams over cleanly; a restart needs recovery.
Writes are slow
nova_write_latency_seconds p99 over 1 s on Standard or 0.25 s on Express, and NovaWriteLatencyP99High fires. Appends succeed.
The likely causes, most common first:
- Object storage is slow or throttling. Watch
nova_objectstore_duration_seconds, labelled by keyfamily, andnova_objectstore_attempt_errors_total, labelled bycause. A throttled slot is sent again within its 30 s budget, so it costs latency. The node also reports storage pressure, which pauses the auditor's deletes for that class. - A ledger halted and rolled. The node logs
wal: epoch halted; rollingwith itsreason, andnova_wal_roll_count_totalrises. One roll is a pause. A series means storage keeps refusing slots. A WAL may roll three times in quick succession. After that, each roll waits for the roll pacer, which allows one every 200 seconds, and appends on that WAL wait with it, up to their deadlines. - The write buffer is full.
nova_direct_pending_bytesnear its limit means producers wait for buffer room (256 MiB a class). One-shot appends then queue innova_direct_pending_waiting, and past that roomnova_direct_pending_busy_totalcounts those refused busy, which callers send again. - Write attempts are cut too early. A slot's early attempts are cut after
--s3-attempt-baseplus the body's time at--s3-attempt-min-rate. A steadynova_objectstore_attempt_cut_landed_totalmeans attempts that had landed were cut: raise those flags.
On Express, a slot needs 2 of its zones' buckets. With three zones, one slow or missing zone costs nothing; two make Express unable to commit, and its appends wait like Standard's.
A stream will not open
A producer's open is refused as retryable again and again; the SDK keeps retrying. The node logs wal: opens held until recovery covers a prior ledger, and nova_wal_gate_holds_total rises.
Before a node serves a stream, the stream's previous leader's records must have references. If the previous leader left without its clean release, the new node waits while its ledger is recovered. It also waits while the previous leader is still alive, because it cannot prove the leader's records are covered.
What to do depends on the previous leader:
- If the previous leader is alive and holds the stream in limbo, it logs
writer: finish incomplete; lease retained until coverage certifiesand retries every 5 s;nova_writer_limbo_age_secondsshows how long, andNovaWriterLimboAgingfires after 5 minutes. The usual cause is a slow metadata store; fix that and it releases. - If the previous leader died, the wait lasts until its metadata session expires (10 s with external oxia, 15 s embedded), plus the recovery. Watch
nova_auditor_due_age_seconds{queue="recovery"}. - If the previous leader is alive but wedged, drain it (
nova node drain), or stop it; recovery then proceeds.
Clients are refused
Callers get ResourceExhausted (HTTP 429 or 503), and nova_dataplane_shed_total rises by resource.
resource or line | Cause | What to do |
|---|---|---|
capacity, NovaCapacityShedding | Every node is saturated or draining | Add nodes |
| A cap in Node limits | Sessions, subscriptions, or held one-shots at the memory plan's cap | Add nodes, or spread clients |
NovaClientListenerAtCap | The client listener holds its total connection cap | Find the source in the listener's shed line, or raise --max-client-connections |
NovaHeapWatermarkRefusing | The live heap passed its watermark; new data calls are refused until it falls | Take a heap profile; give the node more memory |
A saturated or stranded node
A saturated node (nova_node_saturated is 1, with nova_node_utilization over 0.85 on some resource) takes no new streams and hands its streams to peers, one at a time. It stops being saturated below 0.70. If no live peer can take even one stream, it reports stranded (nova_node_stranded, and stranded=true in its star summary). Add capacity; on Kubernetes the controller does. If it stays stranded after new nodes register, one stream carries more than half the node's load, and moving it would only make another node as hot. Make it a scalable stream, or divide the workload.
A node fails
Let recovery run. The node's leases expire with its metadata session, and the next open or read of each of its streams recovers its ledger. The auditor recovers the rest. Clients see refused opens for the session timeout plus the recovery, within the SDK's 30-second retry budget.
Once you know the node is gone for good, retire it from a live node:
nova node decommission --star <star-id>A timeout alone does not prove a node is gone; a network partition can heal. A node whose metadata session expired logs novad: registration lost; exiting to discard stale writer roles and exits, and a node that has not noticed yet meets the fence in its ledger at its next write. Adding and removing nodes has the full procedure.
Object storage outage
Appends wait within fixed budgets: the pool (256 MiB a class) and the backlog. Producers wait until storage returns or their own deadline passes. A slot that cannot land within 30 s halts its ledger, and the WAL rolls once storage answers. Reads of recent records continue from the leader's memory. Stored history falls back from the object cache to storage and fails if neither answers. When storage returns, pending writes complete in order. Nodes need no restart.
Metadata store outage
An established producer keeps writing for a while, because an acknowledgement waits only for object storage. These stop:
| Needs the metadata store | What you see |
|---|---|
| Taking a leadership: a new stream, a failover, a handoff | Opens wait or fail; the SDK retries |
| Indexing acknowledged writes | The backlog grows; appends stall with cause metastore_slow |
| Minting ledgers, rolls, and recovery | Failovers and halted ledgers wait |
| Auditor jobs | Cleanup pauses; due ages climb |
| Session renewals | If the outage outlasts the session timeout, every lease lapses at once, and the whole cluster fails over when the store returns |
Wait for the store; restarting nodes only adds recovery work. Replication inside the store does not protect against a mistaken delete. For that, restore a metadata backup.
Object cache failure
Cache instances hold copies only. A failed cache read goes to object storage, and three failures in a row eject an instance for 30 s (objectcache: cache instance ejected, nova_objectcache_ejections_total, nova_objectcache_ring_size). Expect more storage reads until it returns. Writes never use the cache.
Embedded oxia
| Symptom | Cause | What to do |
|---|---|---|
NovaOxiaDrainStalled, a departure held DrainStalled | Oxia cannot move a departing node's shards: no eligible target, or a catch-up that never ends | Add capacity or fix the target; force only as a last resort. See Node removal ladder. |
NovaOxiaWalVolumeFilling | A server's WAL volume over 70%: each shard replica holds a preallocated 64 MiB segment plus up to an hour of writes | Raise walStorage, or add servers |
NovaOxiaDataVolumeFilling | A server's data volume over 40%: a snapshot install needs room for a second copy | Raise storage, or add servers |
| A decommission answers "the star's metadata replicas are still draining" | Oxia still moves the node's shards | Keep the node running; nova node decommission --wait asks again for up to 15 minutes |
Embedded oxia takes no backup policy, on machines or on Kubernetes. See Backups and restore for what each deployment can back up.