Auditor delays

Auditor delays

Find out why the auditor's cleanup is falling behind, queue by queue, and what to change.

The auditor can fall behind while clients see nothing wrong, because appends never wait for it. What you see instead is a growing due age: how far past its ready time the oldest job in a queue is. This page says what each queue's age means and how to find the cause. The auditor explains its budgets.

curl -s localhost:9191/metrics | grep '^nova_auditor_due_age_seconds'
nova_auditor_due_age_seconds{queue="denorm"} 0
nova_auditor_due_age_seconds{queue="range-split"} 0
nova_auditor_due_age_seconds{queue="reap"} 0
nova_auditor_due_age_seconds{queue="recovery"} 10.716417
nova_auditor_due_age_seconds{queue="retention"} 0
nova_auditor_due_age_seconds{queue="star-reclaim"} 0
nova_auditor_due_age_seconds{queue="teardown"} 0
nova_auditor_due_age_seconds{queue="teardown-final"} 0
nova_auditor_due_age_seconds{queue="trimcheck"} 0

The OpenTelemetry scope labels are left out. The recovery job here is 10 s overdue because it waits for the auditor's next pass, which runs every 30 seconds; an age under that is normal.

What a due age means

nova_auditor_due_age_seconds{queue} is the age of the oldest overdue job in each queue whose jobs carry a ready time, plus denorm. Each auditor looks at the head of each shard it serves every 15 seconds, and a scrape returns the last complete reading, aged by the clock. A reading that fails leaves the last one standing; nova_auditor_observation_timestamp_seconds says when it was taken.

A job waiting for its ready time is normal, and does not count: a denorm marker held for its age cap reads 0. So the age measures lateness, not how long a job has existed. Use job rates to size capacity, and ages to alert.

QueueWhen its age grows
denormCopying records into per-stream objects is slower than ingest; shared write objects and their metadata rows pile up
recoveryA stopped node's ledger is not recovered: its newest records stay unreadable, and streams it led may refuse opens
retentionExpired records stay readable and stored
reap, trimcheckDead objects and copied write objects stand past their grace
teardown, teardown-finalDeleted streams keep their rows and storage. teardown counts from the deletion itself, so a teardown held behind denorm still ages
star-reclaimA retired node's ledger records and write objects are still held
range-splitA split of a scalable stream's range is not done

An empty queue reads 0. Five queues have no due age, because their jobs carry no ready time: gc and orphan (objects a crashed job left behind, waiting to be judged), retention-check, range-intent, and range-merge. ListAuditQueues shows the depth of gc and orphan.

With no auditor running, there is no series at all, and every alert on these ages is silent. The shipped NovaAuditorsAbsent rule pages when no denorm series has been reported for 10 minutes.

Denorm falls behind

Denorm age rises in two different ways, and they need different fixes. Denorm is lagging when every ledger still moves, only slower than ingest; more capacity helps. It is stalled when one ledger stops while the rest drain; more capacity does not help, because something blocks that ledger.

The shipped NovaDenormBacklogAging rule warns when the denorm age has stayed over 10 minutes for 10 minutes, and pages at 30. It fires for both kinds.

nova_denorm_stalled_seconds tells them apart. Each auditor reports the longest time any ledger it serves has had a due denorm frontier, its lowest standing batch marker, that did not move. A ledger not yet due is not counted. The clock restarts when the frontier moves, when denorm copies part of the frontier's marker, or when the ledger moves to another auditor. If the auditor completes no check for 30 seconds, the gauge counts from its last check, so a stuck auditor reaches the bound too.

When it lags

  1. Check the fetch cache first: rising nova_fetchcache_fallbacks_total or nova_fetchcache_prefetch_dropped_total means the scratch budget cannot hold the warm set. Raise --auditor-fetch-cache-mib or the pool's scratch.
  2. Check the budgets on the Auditor dashboard: nova_auditor_budget_wait_seconds by resource shows whether the request budget (requests) or the bandwidth budget (rewrite_bytes) limits. Raise --auditor-s3-budget or --auditor-rewrite-mib, or add auditors.
  3. If the budgets are idle but jobs are slow and metadata p99 is high, the auditor waits on the metadata store. More workers help only until the store slows serving traffic; see Raise capacity gradually.

When it is stalled

NovaDenormStalled pages when nova_denorm_stalled_seconds has been over 15 minutes for a minute. To find the cause:

  1. Find the auditor with the highest nova_denorm_stalled_seconds. Its log names the ledger: auditor: a ledger's denorm frontier has stood due past the stall bound, with star (the node that wrote the ledger), epoch, and frontier (the marker's first slot). If no ledger is named, look for auditor: backlog observation failed; the last one stands: the auditor cannot complete a check, and err says why.
  2. In the same auditor's log, read auditor: job failed; the queue retries next pass with step=denorm. Its key ends in <star>~<epoch>~<first slot>, the same ledger and marker, and err says why it fails.
  3. If nothing fails for that ledger, denorm never reaches it: compare worker utilization (nova_auditor_workers_active) and budget waits.

When the frontier moves again, the auditor logs auditor: a stalled ledger's denorm frontier moved.

One check reads only the oldest due marker in each of the 64 shards. While another auditor's older marker heads a shard, this auditor cannot see its own ledgers there. If that marker is stalled, its own auditor reports it; if it only waits, NovaDenormBacklogAging covers the delay.

Other queues

The shipped NovaReclamationBacklogAging rule warns when any queue other than denorm and star-reclaim stays over 15 minutes past due for 15 minutes, and pages at an hour: by then the auditor is stuck, not busy. star-reclaim has its own rule, NovaStarReclaimHeld, at 26 hours, because a retired node's cleanup can wait out the 24-hour denorm age cap by design.

What you seeMeaningWhat to do
recovery age climbingA stopped or superseded ledger is not being recoveredRead auditor: job failed lines with step=recovery; a failure to resolve the ledger's buckets names them
teardown age climbing, nova_auditor_teardown_gated_total flatTeardown itself is slow or failingRead the job-failed lines for the stream
teardown age climbing, nova_auditor_teardown_gated_total climbingA ledger's denorm backlog holds the teardownFix denorm; teardown follows within a pass
teardown-final age climbing, nova_auditor_stars_clock_ahead above 0A node's clock runs more than 10 s ahead of an auditor's, so teardown holds every purgeFix that node's time sync; NovaStarClockAhead warns
range-split age climbingA split of a scalable stream's range is failing or refusedRead step=range-split failures; nova_auditor_range_split_refused_total counts refusals by reason
retention age climbingExpired data stays readable and storedThe trim goes to the stream's leader: check it is reachable, then the request budget
reap or trimcheck age climbingDead objects stand past their graceThe request budget, then object storage; with storage pressure, deletes pause by design
orphan depth high after an incidentIntents from cut jobs wait out their graceExpected; they are judged after --auditor-orphan-grace
star-reclaim over 26 h, NovaStarReclaimHeldA retired node's cleanup is heldIts step=star-reclaim failures name the node; otherwise check its ledgers' denorm and the trimcheck age
nova_auditor_lease_skips_total climbing on one job, with auditor: job lease contended past the grace; the holder may be wedgedOne auditor is stuck on a jobThe 10-minute job deadline frees it; find what it waits on
An --audit=only pod not readyIts ring announcement is not liveCheck the metadata store's sessions keyspace
No due-age series while appends flow, NovaAuditorsAbsentNo auditor runs, or none owns shardsIf every serving node runs --audit=off, start an --audit=only pool; see The auditor

Two readings are healthy: nova_auditor_denorm_spans_total{outcome="covered"} far above swapped (later markers found their records already copied), and nova_auditor_probe_verdicts_total high after deletes and trims.

See also

On this page