Failure modes

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)'
SymptomGo to
Appends hang, and nova_wal_backlog_age_seconds climbsWrites stall
Appends succeed but take secondsWrites are slow
Opens are refused as retryable for a long timeA stream will not open
Clients get ResourceExhaustedClients are refused
NovaNodeSaturated or NovaNodeStranded firesA saturated or stranded node
nova_auditor_due_age_seconds climbsAuditor delays
A node died, or might haveA node fails
Object storage is down or throttlingObject storage outage
The metadata store is downMetadata store outage
Reads of stored history go to object storage more than usualObject cache failure
An embedded oxia alert fires, or a decommission waits on draining replicasEmbedded 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:

  1. Read the stall's cause:

    curl -s localhost:9191/metrics | grep '^nova_wal_backlog_stall_total'
    causeMeaningNext
    metastore_slowThe last metadata commit took over 1 sCheck the metadata store: nova_kv_duration_seconds, and the Metadata performance dashboard
    absorb_lagThe indexer cannot keep up, but each commit is fastToo many streams per pass; check nova_indexer_pass_duration_seconds and the node's CPU
    rolling, roll_pacerThe WAL is replacing a halted ledgerSee Writes are slow; a dry roll pacer fires NovaRollPacerDry
  2. 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 with nova node drain to end the leadership.

  3. 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:

  1. Object storage is slow or throttling. Watch nova_objectstore_duration_seconds, labelled by key family, and nova_objectstore_attempt_errors_total, labelled by cause. 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.
  2. A ledger halted and rolled. The node logs wal: epoch halted; rolling with its reason, and nova_wal_roll_count_total rises. 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.
  3. The write buffer is full. nova_direct_pending_bytes near its limit means producers wait for buffer room (256 MiB a class). One-shot appends then queue in nova_direct_pending_waiting, and past that room nova_direct_pending_busy_total counts those refused busy, which callers send again.
  4. Write attempts are cut too early. A slot's early attempts are cut after --s3-attempt-base plus the body's time at --s3-attempt-min-rate. A steady nova_objectstore_attempt_cut_landed_total means 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:

  1. If the previous leader is alive and holds the stream in limbo, it logs writer: finish incomplete; lease retained until coverage certifies and retries every 5 s; nova_writer_limbo_age_seconds shows how long, and NovaWriterLimboAging fires after 5 minutes. The usual cause is a slow metadata store; fix that and it releases.
  2. 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"}.
  3. 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 lineCauseWhat to do
capacity, NovaCapacitySheddingEvery node is saturated or drainingAdd nodes
A cap in Node limitsSessions, subscriptions, or held one-shots at the memory plan's capAdd nodes, or spread clients
NovaClientListenerAtCapThe client listener holds its total connection capFind the source in the listener's shed line, or raise --max-client-connections
NovaHeapWatermarkRefusingThe live heap passed its watermark; new data calls are refused until it fallsTake 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 storeWhat you see
Taking a leadership: a new stream, a failover, a handoffOpens wait or fail; the SDK retries
Indexing acknowledged writesThe backlog grows; appends stall with cause metastore_slow
Minting ledgers, rolls, and recoveryFailovers and halted ledgers wait
Auditor jobsCleanup pauses; due ages climb
Session renewalsIf 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

SymptomCauseWhat to do
NovaOxiaDrainStalled, a departure held DrainStalledOxia cannot move a departing node's shards: no eligible target, or a catch-up that never endsAdd capacity or fix the target; force only as a last resort. See Node removal ladder.
NovaOxiaWalVolumeFillingA server's WAL volume over 70%: each shard replica holds a preallocated 64 MiB segment plus up to an hour of writesRaise walStorage, or add servers
NovaOxiaDataVolumeFillingA server's data volume over 40%: a snapshot install needs room for a second copyRaise storage, or add servers
A decommission answers "the star's metadata replicas are still draining"Oxia still moves the node's shardsKeep 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.

See also

On this page