Skip to content

Expose replay progress, committed spool loss and worker metrics - #95

Merged
mzupan merged 3 commits into
mainfrom
codex/ingest-replay-health
Nov 15, 2026
Merged

mzupan merged 3 commits into
mainfrom
codex/ingest-replay-health

Conversation

@mzupan

@mzupan mzupan commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Stacked after #94. Merge in order #94, #95, #96, #97, #98, #99. This diff contains only this finding relative to its base.

Expose durable ingest replay progress and explicit loss counters for disk segments, torn tails, invalid payloads and corrupt object-store frames. Count losses only after removal/commit so retried reads do not inflate loss, keep partial replays distinct from full success, and record replay insert/ack errors, latency and backlog independently of the stats writer. Disk deletion failures retain backlog and corruption discards no longer inflate the committed-segment counter.

Drain-only workers now expose GET /metrics on RUSH_WORKER_METRICS_ADDR (default 0.0.0.0:9090, explicitly empty disables). The listener binds before worker startup and stays available throughout draining. Only fixed backend/outcome/reason/operation labels are emitted.

Validation: full library suite passed (790 passed, 14 integration tests ignored); final spool-focused suite passed (22 passed, 1 ignored). New regressions cover retry-safe torn-tail accounting, object corruption, partial replay, and worker scraping through shutdown. cargo fmt --check, git diff --check and cargo clippy --all-targets passed; strict -D warnings is blocked by existing repository warnings.

@mzupan
mzupan changed the base branch from main to codex/ingest-batch-health November 15, 2026 22:06
@mzupan
mzupan added this pull request to stack #102 November 15, 2026 22:43
Base automatically changed from codex/ingest-batch-health to main November 15, 2026 22:44
@mzupan
mzupan merged commit b692e76 into main Nov 15, 2026
6 checks passed
@mzupan
mzupan deleted the codex/ingest-replay-health branch November 15, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant