Skip to content

fix: what the pool's telemetry of 2026-10-22 showed besides the restart - #212

Merged
7schmiede merged 2 commits into
mainfrom
fix/telemetry-findings
Oct 22, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/telemetry-findings

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Findings from the pool's telemetry (2026-10-20 to 2026-10-22), each traced to the code on main; the restart that kept an old daemon is #211.

Fixed

  • Main ports given back start what ran before (lanes.rs Handover, Supervisor::start_build). give_back started the main tree's services anew, which built the tree as it is: a candidate held for a schema change (ADR-0013) came into the main slot without its migration (seen: building <old> → build_reused <held>, then the service crashed). Each stopped service now remembers its build and starts from it (its artifact while it is there).
  • Docker check (engine::look, hub watch_engine): any error starting docker was Missing ("Docker is not installed"), a 5 s timeout Stopped; seen flapping on busy machines, back 10 s later. Now only NotFound is missing; a running engine is gone after two looks in a row; the docker line carries error and ms, a single failed look is docker_look_failed.
  • changed candidate events: each changed file replaced the candidate's reason, one event per file (1925 in a minute). A candidate that says changed keeps its first path.
  • Sync on Windows: a file being deleted answers "access denied"; it is skipped like a gone one instead of failing the sync (Windows only).
  • promote --lane refusal names each missing service's state and advises up only when they are stopped (seen: four refusals advising up while a build had failed).
  • Open files: a lane's daemon on a node ran out at the container's soft limit (os error 24). devstack raises its soft limit to the hard one at start (unix; no --ulimit, which rootless Docker may refuse); daemon_start says the limit.

Telemetry added: OS error codes kept when Windows wraps an error text over two lines (only the (os error N), never the rest); Windows exception exit codes in hex (-532462766 (0xE0434352)) in a failed service's reason and service_exited; remote_lane_synced with hashed, hash_ms, compare_ms, upload_ms, apply_ms.

Backlog (docs/plan.md §13): a persistent hash cache for a lane's first sync (35 s for 0 bytes), tunnel idle timeouts and descriptor gauges, telemetry of lanes on nodes.

Not changed, checked: the tunnel warnings for TLS close_notify / 10053 / 10054 come from a 0.15.0 daemon; #172 (0.16.0) treats them as a peer hanging up.

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 22, 2026 11:28
- Giving the main ports back from a lane starts each service from the build
  it ran, not a candidate held meanwhile (ADR-0013: a held build reached
  the main slot without its migration).
- The hub's Docker check: only a `docker` not found is missing; a running
  engine counts as gone when two looks in a row say so; the `docker` line
  says why and how long (`docker_look_failed` for a single one).
- A changed candidate keeps its first path: one event, not one per file.
- A sync skips a file Windows is deleting (access denied) as a gone one.
- A refused `promote --lane` names each missing service's state.
- devstack raises its soft limit of open files to the hard one (unix).
- Telemetry: an OS error code survives the cut to the first line, Windows
  exception exit codes read in hex, `remote_lane_synced` says what was
  hashed and where the time went, `daemon_start` the open files limit.
- Backlog: the first sync's hashing, tunnel idle timeouts and descriptor
  gauges, telemetry of lanes on nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit d546b83 into main Oct 22, 2026
@7schmiede
7schmiede deleted the fix/telemetry-findings branch October 23, 2026 20:53
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