Skip to content

fix(lanes): a lane on a node lost to a reboot is said; first syncs hash in parallel - #275

Merged
7schmiede merged 1 commit into
mainfrom
fix/telemetry-2026-10-26
Oct 26, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/telemetry-2026-10-26

Conversation

@7schmiede

Copy link
Copy Markdown
Member

From the pool's telemetry of 2026-10-23 to 2026-10-26.

A lane on a node lost to an unclean end is said (ADR-0052 point 6)

A member's machine restarted. Its lane on a node had run for 2.8 days. The daemon was killed (no daemon_stopping), and the node let the lease expire two minutes later (node_lease_ended, held 244450 s). The next daemon showed the lane as merely stopped, with no word about it (by ADR-0052 point 3).

  • While a daemon follows a lane on a node, the lane's state holds followed.json (its Carried). Stopping the lane, or seeing its lease end, removes the note. A restart leaves it, and the next daemon adopts the lane and writes it again. The note is removed only for its own lease, so a move between nodes keeps the new one.
  • The next daemon handles a note it did not take up this way: it releases the lease (if it still runs, as a stop does), logs remote_lane_unfollowed, and shows with the lane a failed start with the reason and devstack up --on <node>. The lane is not restarted by itself (owner's decision; an alternative in the ADR).
  • take_up now runs: carried lanes on nodes, unfollowed lanes, lanes here, the main slot. The note no longer waits behind the up-to-15-minute wait for the main tree.
  • remote_lane.rs (Linux CI): kill the daemon, up, then check that the lane says it, the log has remote_lane_unfollowed, and the node is clear.

First sync of a remote lane hashes in parallel

On one member, remote_lane_synced showed hash_ms 22-90 s for ~7,200 files, which is nearly the whole sync. That is 5-12 ms per file open (a virus scanner's); the same tree reads in 0.35 s on another machine. hash_all now reads the files that have no cached hash on 2-16 threads. The order and the gone handling are unchanged, and there is a test for the order. The effect will show in hash_ms once members run it.

node_lease_ended says why

why: released, expired, ended (admin). The pool-telemetry skill is updated.

🤖 Generated with Claude Code

…sh in parallel

From the pool's telemetry of 2026-10-23..26:

- A member's machine restarted; its lane on a node (2.8 days old) was
  gone after the reboot without a word: the daemon was killed, the lease
  expired on the node two minutes later, and the next daemon showed the
  lane as merely stopped. A lane on a node now leaves a note in its state
  while a daemon follows it; the next daemon finds a note it did not take
  up, releases the lease if it still runs, logs remote_lane_unfollowed and
  shows with the lane why it is gone and how to start it again
  (ADR-0052 point 6).
- The first sync of a remote lane spent 22-90 s hashing ~7,200 files on
  one member (5-12 ms per open, a virus scanner's); files without a cached
  hash are now read on 2-16 threads.
- node_lease_ended says why: released, expired or ended by an admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit a61c410 into main Oct 26, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/telemetry-2026-10-26 branch October 26, 2026 11:10
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