Skip to content

multi-source unit watchdog kills a proxy during its two-leg cold start #2209

Closed

Description

@thiras

Summary

The multi-source unit watchdog kills a healthy proxy during its cold start. It samples verified progress once per --unit-deadline-ms (default 10 s). Progress moves only when a 4 MiB ingest checkpoint lands. A proxy-warming two-leg miss does not land 4 MiB in its first 10 s, so the fetch fails over to single-source.

Evidence (testnet, 2026-09-28, CLI and fleet on 8886c85c)

  • 07:47:10. bundle pull: multi-source fetch of an entry failed (all sources failed; 4546807800 bytes unfetched: provider 0x6B82… [nbg1]: no verified progress within the unit deadline). The entry is b32596…, unit 0 (1237368832 bytes).
  • The matching nbg1 trace a1e28475dc31d5bc0edf9a29e3fdc885 (07:46:59–07:47:10.9):
    • DHT lookup took 650 ms and the first upstream open took 608 ms. The first upstream byte arrived ~1.8 s after the request.
    • The pull then ran in ~1 MB paced draws (1097728, 983040, 1507328, 1097728), one open every ~2.5 s.
    • The serve ended with closed by peer: upstream-pull-dropped.
  • 08:06:42. The same failure on 998030… (1778593864 bytes unfetched).
  • Code:
    • watchdog samples missing_bytes once per deadline: crates/client/src/scheduler.rs:247.
    • That count moves only at INGEST_CHECKPOINT_BYTES (4 MiB): crates/client/src/ranged_store.rs:509.
    • The default deadline is set at crates/common/src/cli/fetch.rs:213. The flag's own doc says it must sit above 4 MiB / min-expected-throughput, and a ramping proxy does not meet that.

Direction (not decided)

  • Count wire progress (bytes verified in flight), not durable checkpoints.
  • Or start the deadline at the first byte.
  • Or scale the deadline for a two-leg source.

Related

#2205

Activity

  1. added
    kind:bug
    area:cli
    on Sep 28, 2026
  2. self-assigned this
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:bug

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions