Repository navigation
dashboard: spare nodes and node health of resident ssh trainer islands (own-cluster 4.5) - #901
Open
michaellchung wants to merge 2 commits into
Open
michaellchung wants to merge 2 commits into
michaellchung wants to merge 2 commits into
Conversation
michaellchung
force-pushed
the
own/island-spares
branch
4 times, most recently
from
November 26, 2026 19:12
4618b55 to
8eefd6f
Compare
michaellchung
force-pushed
the
own/island-spares-dash
branch
from
November 26, 2026 21:16
f0213e2 to
4270547
Compare
…s (own-cluster 4.5)
A resident ssh: trainer island with spare nodes now shows on the page:
- trainer card (topology): a "waiting spare" badge, "waiting for a spare node | <how long>"
and why no spare is free; a "node x" badge and the reason ("gpu-d: GPU 3 XID 79") of a
node whose health check is lost (one bad check: the reason as a warning, no badge);
"replaced Nx | old -> new | <ago>" once a spare took a node's place; why the island gave
up (replacement limit, given-up wait). The trainer tip lists every unhealthy node, the
wait, the lost nodes, the last replacement and the 24 h count against the limit.
- Islands now: the mark in place of the trainer row's status, the reason in its last cell
(one line, the whole on hover).
- event stream: island_node_lost, island_waiting_spare, island_node_replaced,
island_replacement_limit and the node_health events; a field over 80 characters is
cut with an ellipsis, the whole fields on the line's hover.
The island's record (spares / health in fleet/trainers/<k>/state.json) wins over its
fleet.jsonl events; the events alone mark the card when there is no record. A node
check older than three periods before the record's own write reads as stale; an island
that ended shows no health and no wait. A trainer waiting for a spare or replacing a
lost node is out of the syncer roster and is not drawn as a lost trainer.
The spare-node events fold in replay order: by time_unix across sources, in write
order within one source; a record that sorts before one folded already (a lost host's
store copy read late) replays the island's mark. Spare-node and node health events
return before the island's shape fields and lifecycle: they are neither a sign of life
nor a lifecycle state. They are fleet records now: the moved-host test of the fleet
log store expects every fleet.jsonl record once, the spare-node events included.
An island without spare nodes or health checks gets no new field: every customer page
is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es column) - A relaunch on the same nodes no longer leaves a healthy running island reading "health unread (stale)" for good: the node checks kept over the relaunch carry reset: true and FleetController._health_key counts it, so the first check of the new job writes the record again. The page applies the stale check only while the island runs (checks stop on purpose while it recovers): a waiting island keeps its lost node's "lost | GPU 3 XID 79". - A wait for a spare node no longer masks a loss: past fleet.waiting_absent_after_s (plan, default 1 h) it reads "waiting for a spare node | counts as absent" (warn); past --spare-max-wait-s (now on the island record, default 24 h) the island reads lost, and with no record or event reporting the wait for 1 h 12 min (the hourly report, two health periods and 10 min) it reads unknown; both restore the dashed box and the lost badge. - Health checks show only the island's current nodes (a node a spare replaced is gone). - A later wait or a replacement ends an earlier give-up; a running record shows none. - Islands now: the reason moves to its own Nodes column (only on a page with such an island), cut by the column's width with the whole on hover; what to act on (the skipped nodes and why, e.g. a lease) comes first. The card's wait is its phase line only (no second badge). The syncer roster of an island waiting for a spare is a warning, and the layout line counts trainers the same way. Card, tip and table measure a wait against one time. - docs/DASHBOARD.md: the clock skew and same-time limits of the spare-node events, next to the fleet log's, and how long waits read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaellchung
force-pushed
the
own/island-spares-dash
branch
from
November 26, 2026 22:42
4270547 to
37cf81e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Own-cluster fleet stability task 4.5: the dashboard shows the spare-node state and node health of a resident
ssh:trainer island. Rebased onmain(after #885 spares backend and #910 fleet.jsonl store copy). Two commits: the feature, then the REV-901c review fixes.What the page shows
waiting for a spare node | <how long>(warn; no second badge saying the same) and a line saying why no spare is free, what to act on first (gpu-e: lease held by run ... | no free spare in rack-b, placement reason kept).fleet.waiting_absent_after_s(plan, default 1 h):waiting for a spare node | counts as absent(warn).--spare-max-wait-s(the island record's, default 24 h), or no record or event reporting the wait for 1 h 12 min (the hourly wait report, two health periods and 10 min): the wait is not believed; the island reads lost (expired) or unknown (unreported), with the dashed box, thelostbadge and the reason in red.node xbadge (bad) and the reason line (gpu-d: GPU 3 XID 79, the reason in red) for a node whose health check turnedlost. One bad check is the reason as a warning, no badge. A check without reasons reads in words (health bad in 2 checks in a row,health unread,health unread (stale)).replaced Nx | gpu-d -> gpu-e | 2m41s agoonce a spare took a node's place; the reason it gave up (replacement limit, given-up wait) in red.1/2 trainer(s) live (1 replacing a lost node)).waiting spare 1m36s,| counts as absentpast the absent limit, ornode x) in place of the trainer row's status. The reason has its ownNodescolumn, added only on a page with such an island (every other page keeps its columns): one line cut by the column's width with an ellipsis, the whole on hover. An island that ended has no mark.island_node_lost(lost),island_waiting_spare(wait, or stop whengiven_up),island_node_replaced(swap),island_replacement_limit(max),node_health*(node), each with its own fields. A field over 80 characters is cut with an ellipsis; the line's hover has the whole fields.Data
fleet_islands._trainer_recordspasses the record'sspares(with itsupdated) andhealthonly when the record has them, read defensively. The island record'ssparesnow carriesmax_wait_s(--spare-max-wait-s); the plan'sroster.waiting_absent_after_sis read when the plan sets it.spares.nodes; a node a spare replaced is gone). The stale rule (a check older than 3 periods before the record's own write readshealth unread (stale)) applies only while the island runs: checks stop on purpose while it recovers, so a waiting island keeps its lost node'slost | GPU 3 XID 79.reset: true) until the new job's first check.FleetController._health_keynow countsreset, so that first check writes the record again: a healthy running island no longer reads stale for good.stopped); a running record shows none.done/failed/ stopped) shows no health and no wait; a finished run shows no badge. The card merges the record (wins) with the fleet.jsonl events (fallback, and the names of the last replacement).Ordering guard (same as #910 M2)
time_unixacross sources, in write order within one source (a line never goes before an earlier line of its own source, even with an older time; an untimed line keeps the time of the line before it).sparesmark from its records; in-order streams fold as before.Reducer._feed_fleet, spare-node andnode_health*events return right afterself.island(iid), before fleet.jsonl: learner id as island_id, chunked copy into the run store #910's shape fields and lifecycle insort: they are neither a sign of life nor a lifecycle state.tests/test_fleet_log_store.py::test_the_moved_host_s_island_is_running_with_the_lost_host_s_historynow asserts every fleet.jsonl record of both hosts once, the spare-node events included; its lifecycle assertions are unchanged.docs/DASHBOARD.mdnext to the fleet log's: a host clock behind by more than the gap between two hosts' records can show a replaced island still waiting; two hosts' events with the sametime_unixfold in read order. The island record in the run store wins over the events either way.REV-901c review fixes
_health_keycountsreset; stale applies only while running. Test:tests/test_dashboard_island_health_relaunch.py(the review's counterexample, asserting the fixed behaviour; fails on the old key).Nodes), key info first, no duplicate wait badge, roster warn colour and one count with the layout line, one time for card / tip / table, full-height 400 px screenshots.Tests
tests/test_dashboard_island_spares.py(65 tests) andtests/test_dashboard_island_health_relaunch.py(2): reducer folds and record precedence, replay order, no shape field or lifecycle state from spare / health events, stale / ended / relaunched / recovering health, replaced nodes, give-ups, long waits, roster and layout counts, defensive reads, no new field on any of the 9 customer dashboard fixtures, and node-smoke renders of the card, tip, Islands now and event stream.test_exact_option_names.py::test_every_entry_point_under_yeto_parses_full_names_onlyonyeto/node/smoke.py, which failed onmaintoo and is fixed onmainby node smoke: take full option names only (fixes main's exact-parser coverage test) #927; it and this PR's suites (186 tests) pass on the final head. Reported, not re-run.test_k31_customer_plan_golden+tests/golden/breakers: 52 passed on both sides, golden files unchanged.examples/k31dry-runs (yeto run up --dry-run, full plan, trainer launch rc=0) and the pool dry-run: line-for-line identical tomainafter normalization (5 outputs and the preflight logs; only the known offlinemodel_pull/sandbox statusfailures).mainwith fixture mtimes aligned: 34 of 36 pairs pixel-identical in the first pass;breakers_r2_healthyat 400 px identical in two reshoots of both sides;breaker_stopat 400 px has two possible captures on either side (mainagainstmaindiffers too, at the page's last panel); both sides produce the same two images.--spare-max-wait-s, unreported) at 2540 / 1920 / 1440 / 400, full height: no horizontal overflow, noNaN/undefined/nullon the page; reviewed for proportion with the rest of the page, redundant labels and corner radii.Notes (not changed here)
main, thedilocofixture's breaker rate scope (breakers.layers[0].rows[2].acted.rate.scope) depends onPYTHONHASHSEED(island 0orisland 1); identical on both sides for a fixed seed.tests/test_dashboard_island_join_leave.pysets the mtime of thelora_endedfixture'steardown.jsonin the repository tree (os.utime), so that fixture'soperator_stoptime depends on which tests ran before.🤖 Generated with Claude Code