Logs

Logs

What a Nova node logs, how to read it, and which lines need action.

A Nova node logs one line per change of state and one per failure, never one per record or request. A quiet log means nothing changed; a Warn or Error means something needs a look. This page shows the format, the lines every start writes, and the lines that need action, with what to do.

A stream is created, written to, and deleted
[INFO] writer: leadership born node_id=01a204e5-1ca3-78e9-906a-57ab6239f06e stream=01a204e9-014e-72f9-9d2d-6c4a3397fa53 class=standard producer=any cursor=0 fenced=false
[INFO] novad: star summary node_id=01a204e5-1ca3-78e9-906a-57ab6239f06e leaders=1 leadership_edges_suppressed=0 sessions=0 subscriptions=0 append_mibps=1.5 offered_mibps=4.4 read_mibps=0 backlog_standard_age=0s retained_mib=15.2 utilization=0.0024113905746068623 axis=cpu draining=false drained=false saturated=false stranded=false auditor_jobs=1 auditor_failed=0 auditor_torn_down=0 auditor_teardown_gated=0
[INFO] writer: leadership released node_id=01a204e5-1ca3-78e9-906a-57ab6239f06e stream=01a204e9-014e-72f9-9d2d-6c4a3397fa53 cause=deleted dur=15.368986792s offered_bytes=46275840

The node takes the stream's leadership, reports its rates in the periodic summary, and gives the leadership up when the stream is deleted.

Format and levels

Logs go to standard error. --log-format text, the default, writes [LEVEL] message key=value, colored on a terminal and plain when piped or when NO_COLOR is set. --log-format json writes one object per line; the Compose and Pulumi deployments use it. --log-level takes debug, info, warn, or error, and info is the default. debug also includes embedded oxia's own logs.

LevelWhat it carries
InfoOne line per change of state: streams, buckets, credentials, leaderships, ledgers, recovery, drains, saturation, registration, shutdown; and the periodic summary
DebugPer-connection and per-job lines: producer sessions, subscriptions, auditor jobs, queue seats. Volume grows with load.
WarnA failure Nova retries, refused work, or a limit reached. A limit is logged once when reached, and again only after it was left.
ErrorA failure that needs a person

Every line carries node_id, the name from --node-id or the one minted on first start. Keys are snake_case, errors are err, and each message starts with its package: novad:, writer:, wal:, auditor:, queue:, and so on.

What every start logs

A start writes its lines in a fixed order:

  1. novad: startup settings, the resolved configuration, as a table in text or a settings object in JSON.
  2. wal: ledger minted, once per class, with epoch, layout, and priors_fenced.
  3. novad: memory plan, the memory plan: what each budget holds and how many sessions, subscriptions, and one-shots fit.
  4. auditor: running, when the node runs an auditor, with workers and interval.
  5. queue: dispatcher joined the ring: the node delivers queues, and reconsiders which ranges it delivers every pass_interval.
  6. novad: serving, with the bound addresses and the advertised addr.
  7. The storage mode: novad: S3 storage at Info, or novad: IN-MEMORY storage or novad: LOCAL DISK storage at Warn, because neither survives a lost machine.

The star summary

Every --log-summary-interval (1 minute; 0 turns it off), a node logs one novad: star summary line, idle or not. It is the quickest health check that needs no metrics:

FieldMeaning
leaders, sessions, subscriptionsStreams led, producer sessions, and subscriptions open now
leadership_edges_suppressedLeadership changes over the interval that were counted but not logged, because leaderships were churning
append_mibps, offered_mibps, read_mibpsMiB/s over the interval: acknowledged, submitted, and read from recent records
backlog_<class>_agePer class, the age of the oldest flight (one upload of acknowledged writes) still waiting for the indexer to record it in the metadata store
retained_mibMemory held in append buffers, the recent-record cache, and session transport
utilization, axisThe busiest resource's utilization, and which resource it is
draining, drained, saturated, strandedThe node's state flags
auditor_jobs, auditor_failedAuditor jobs done and failed since start, when the node runs an auditor
auditor_torn_down, auditor_teardown_gatedSince start: deleted streams whose cleanup finished, and teardowns put back to wait for denorm
client_connections, fleet_connectionsConnections on each listener, when the node has a separate fleet listener

An auditor-only process logs no summary of streams; it publishes its CPU, version, and start time every 5 seconds instead.

Lines that need action

Each line below shows its level beside it, what it means, and what to do.

Writes

wal: epoch halted; rollingWarn

A slot could not reach its quorum, so the node fences its ledger and starts a new one. reason is foreign_occupant, throttled, probe_unresolved, or put_failed.

What to do: usually object storage. Look at cause and the S3 dashboard. One roll is harmless; a series is not.

wal: ledger rolled in placeInfo

The roll finished. Producers saw a pause, not an error.

What to do: nothing.

wal: roll failed; the WAL is terminalWarn

A newer writer took this node's place, or the node closed during the roll.

What to do: expect the node to restart, and check that it is not running twice under one ID.

wal: publish waited on the backlog budgetWarn

A flight waited over 5 s for the indexer.

What to do: check the metadata store's latency; see Writes stall.

wal: slot resolved slowWarn

One slot's upload took over 5 s.

What to do: check object storage latency.

wal: publish boarded slowWarn

The wait before a slot's upload took over 5 s.

What to do: check object storage latency.

indexer: a stream led here has no registry row; its ledger's absorb is refused until the leadership ends or the row reads againError

One stream blocks a ledger's indexing. NovaAbsorbRefusingMissingRow fires.

What to do: restore the row if it was lost, then drain the node.

Leadership and recovery

wal: opens held until recovery covers a prior ledgerWarn

Opens of some streams are refused while a previous leader's ledger is recovered. wal: the open gate cleared; a prior ledger recovered ends it.

What to do: wait. If it lasts, check the recovery queue's age.

writer: finish incomplete; lease retained until coverage certifiesWarn

A departing leader keeps its lease and retries every 5 s.

What to do: check the metadata store. NovaWriterLimboAging fires if it lasts.

writer: leadership abandoned uncovered at close; the lease dies with the session and recovery convergesWarn

A node closed with a departure unfinished.

What to do: nothing; recovery covers it.

dataplane: orphaned lease found; serving the open so the same-owner acquire re-attaches itWarn

A lease survived a lost answer and is being repaired.

What to do: nothing, unless it repeats; then take a look.

novad: registration lost; exiting to discard stale writer rolesError

The node's metadata session expired, so it exits.

What to do: check the metadata store and --oxia-session-timeout. The node restarts clean.

indexer: ledger indexedInfo

A recovery finished, with its cut and duration.

What to do: nothing.

auditor: recovering a superseded epoch; its successor's gate waits on itInfo

The auditor recovers a ledger an open is waiting for.

What to do: nothing.

The auditor

auditor: job failed; the queue retries next passWarn

One job failed and will run again.

What to do: read err, and act if the same job keeps failing.

auditor: queue walk failed; the shard retries next passWarn

Reading a queue shard failed.

What to do: check the metadata store.

auditor: job lease contended past the grace; the holder may be wedgedWarn

Another auditor has held the job named in job too long.

What to do: the 10-minute job deadline frees it. If the line repeats, find the auditor whose workers stay busy (nova_auditor_workers_active) and read its log.

auditor: ring seat lost with its session; re-announcedWarn

The auditor's session ended and it rejoined.

What to do: check the metadata store's latency.

auditor: backlog observation failed; the last one standsWarn

The auditor could not read its queue heads. Its due-age metrics keep reporting from its last reading.

What to do: read err, then check the metadata store.

auditor: a ledger's denorm frontier has stood due past the stall boundWarn

A ledger's denorm stopped moving.

What to do: see Auditor delays.

novad: the auditor has no fetch cache: …Warn

Logged at start: the node's auditor reads object storage without a fetch cache, so denorm falls behind ingest past a few MiB/s.

What to do: set --auditor-fetch-cache-dir; see The fetch cache.

rewrite: denorm refused a standing output another incarnation published; the marker waits for its reapWarn

A stream recreated under its old ID waits for its predecessor's object to be reaped.

What to do: it usually clears within three read graces. NovaDenormRefusalStuck fires if not.

auditor: retired star reclaimedInfo

A decommissioned node's storage is cleaned up. held is how long it took.

What to do: nothing.

An auditor also logs, at Info, each retention trim, each ledger trim, each teardown walk, and each object the probe reaps or the orphan duty reclaims. Each finished job logs auditor: job done at Debug.

Queues

Queue lines start with queue:. A node logs a reached bound once, and again only after leaving it and reaching it again.

queue: a seat below its share was refused; seats above their share give memory backWarn

The node's window budget is nearly full.

What to do: more workers or faster acks on the busiest queues, a larger window budget, or more nodes.

queue: a seat keeps giving back ready entries and reading them again; its star's window budget holds less than its seats readWarn

One seat re-reads messages because the budget is too small.

What to do: a larger window budget, or more nodes.

queue: the star's window budget is held by claims and records on their way; seats wait for acksWarn

Unsettled claims hold the memory.

What to do: find the queues whose claim age grows.

queue: a seat could not fetch its messages' records; it deals what it holds until the store answersWarn

A record read failed or took over 3 s.

What to do: check the range's leader and object storage.

queue: work sessions refused at the bound; no more is said until one closesWarn

The node holds its most work sessions.

What to do: fewer sessions per worker process, or more nodes.

queue: one-shot claims refused at the bound; no more is said until one endsWarn

The node holds its most waiting one-shot claims.

What to do: fewer concurrent long polls, or more nodes.

queue: seats at the bound; ranges wait for a seat to closeWarn

The node has its most seats open.

What to do: more nodes.

queue: the dispatch budget held seats backWarn

The claims-per-second budget limits delivery.

What to do: expected under a flood. Raise the budget if it is too low.

queue: messages expired undeliveredWarn

Messages passed their TTL before any worker took them.

What to do: more workers, or a longer message_ttl_ms.

queue: retention trimmed a range past its ack frontier; the messages between expired undeliveredWarn

Retention removed stored messages nobody had taken.

What to do: more workers, or a longer message_ttl_ms.

queue: saving the ack frontier failed; the next save retriesWarn

A progress save failed.

What to do: check the metadata store.

queue: claims could not be recorded; their messages are dealt at the next tryWarn

Persisted claims: delivery pauses.

What to do: check the metadata store.

queue: firing due messages failed; it is tried againWarn

A retry, delay, or dead letter could not be appended.

What to do: check the range's leader and object storage.

queue: ring membership lost with its session; rejoinedWarn

The node's metadata session expired.

What to do: check the metadata store and --oxia-session-timeout.

queue: a noisy key is not isolated; it stays in its rangeWarn

The queue is at its isolated-range or range limit.

What to do: fewer flooding keys, or set key_concurrency.

queue: seat failed; a need opens it again after a pauseWarn

A seat ended with an error. It reopens no sooner than 5 s later.

What to do: read err.

At Info, a node logs each change of its dispatch shards and of its ranges, such as queue: seat took its range over and queue: range drained. Seats opening and closing follow worker connections and log at Debug. Queues explains the budgets these lines name.

Nodes and the metadata store

novad: drain ordered; refusing new leadershipInfo

A drain started.

What to do: nothing.

novad: decommission orderedInfo

A node is being retired.

What to do: nothing.

novad: star decommissionedInfo

A node is retired.

What to do: nothing.

novad draining to exit; a second signal skips to closeInfo

A stop signal started the exit drain.

What to do: wait. A second signal skips the handoff, and a third kills the process.

novad: close nudged peers to recoverInfo

A closing node asked its peers to recover its ledgers.

What to do: nothing.

embedded: oxia refuses to release this star's data server until more servers are attachedWarn

A node moving to external oxia waits for enough external servers.

What to do: attach more external servers; see Metadata store.

embedded: data server released and stoppedInfo

The move off this node's data server finished.

What to do: restart the next node.

objectcache: cache instance ejectedWarn

A cache instance failed three times and is skipped for 30 s.

What to do: check the instance. Reads go to storage meanwhile.

See also

On this page