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"} 0The 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.
| Queue | When its age grows |
|---|---|
denorm | Copying records into per-stream objects is slower than ingest; shared write objects and their metadata rows pile up |
recovery | A stopped node's ledger is not recovered: its newest records stay unreadable, and streams it led may refuse opens |
retention | Expired records stay readable and stored |
reap, trimcheck | Dead objects and copied write objects stand past their grace |
teardown, teardown-final | Deleted streams keep their rows and storage. teardown counts from the deletion itself, so a teardown held behind denorm still ages |
star-reclaim | A retired node's ledger records and write objects are still held |
range-split | A 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
- Check the fetch cache first: rising
nova_fetchcache_fallbacks_totalornova_fetchcache_prefetch_dropped_totalmeans the scratch budget cannot hold the warm set. Raise--auditor-fetch-cache-mibor the pool's scratch. - Check the budgets on the Auditor dashboard:
nova_auditor_budget_wait_secondsbyresourceshows whether the request budget (requests) or the bandwidth budget (rewrite_bytes) limits. Raise--auditor-s3-budgetor--auditor-rewrite-mib, or add auditors. - 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:
- 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, withstar(the node that wrote the ledger),epoch, andfrontier(the marker's first slot). If no ledger is named, look forauditor: backlog observation failed; the last one stands: the auditor cannot complete a check, anderrsays why. - In the same auditor's log, read
auditor: job failed; the queue retries next passwithstep=denorm. Itskeyends in<star>~<epoch>~<first slot>, the same ledger and marker, anderrsays why it fails. - 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 see | Meaning | What to do |
|---|---|---|
recovery age climbing | A stopped or superseded ledger is not being recovered | Read 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 flat | Teardown itself is slow or failing | Read the job-failed lines for the stream |
teardown age climbing, nova_auditor_teardown_gated_total climbing | A ledger's denorm backlog holds the teardown | Fix denorm; teardown follows within a pass |
teardown-final age climbing, nova_auditor_stars_clock_ahead above 0 | A node's clock runs more than 10 s ahead of an auditor's, so teardown holds every purge | Fix that node's time sync; NovaStarClockAhead warns |
range-split age climbing | A split of a scalable stream's range is failing or refused | Read step=range-split failures; nova_auditor_range_split_refused_total counts refusals by reason |
retention age climbing | Expired data stays readable and stored | The trim goes to the stream's leader: check it is reachable, then the request budget |
reap or trimcheck age climbing | Dead objects stand past their grace | The request budget, then object storage; with storage pressure, deletes pause by design |
orphan depth high after an incident | Intents from cut jobs wait out their grace | Expected; they are judged after --auditor-orphan-grace |
star-reclaim over 26 h, NovaStarReclaimHeld | A retired node's cleanup is held | Its 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 wedged | One auditor is stuck on a job | The 10-minute job deadline frees it; find what it waits on |
An --audit=only pod not ready | Its ring announcement is not live | Check the metadata store's sessions keyspace |
No due-age series while appends flow, NovaAuditorsAbsent | No auditor runs, or none owns shards | If 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.