Skip to content

fleet island add: an ssh: island's nodes are checked for health, fabric group and leases before it joins - #899

Open
michaellchung wants to merge 13 commits into
own/island-stragglerfrom
own/island-join
Open

michaellchung wants to merge 13 commits into
own/island-stragglerfrom
own/island-join

Conversation

@michaellchung

@michaellchung michaellchung commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

own-cluster-fleet-stability task 9.3: the checks an ssh: island's nodes must pass before it joins a running fleet, or before an island moves onto ssh: nodes. Stacked on #891 (base own/island-straggler, head 1719d07); retarget to main once #891 is in.

What changes

  • yeto fleet island add --inventory PATH: an ssh: island added at run time gets its own node inventory, stored as an absolute path. The inventory becomes the launch's --rl-node-inventory. --inventory with a non-ssh --gpu is refused.

  • yeto fleet island move --gpu ssh:... [--inventory PATH]: the machines an island moves onto pass the same join checks. --inventory replaces the island's inventory; without it the island keeps its own.

  • --force on add and move: a node whose health check does not read joins with a WARNING. A node found unhealthy is refused with --force too.

  • New yeto/launch/island_join.py. The inventory's trainer nodes are checked before anything is written, in the dry run too, and the nodes the island takes are printed.

  • Count and this fleet:

    • Without lease_store, the inventory lists exactly as many trainer nodes as --gpu says.
    • No node may be a trainer node of another ssh: island. A node counts as another island's when the name matches, or the machine does: the SSH target without user@, or the address, case-insensitive.
    • With lease_store, the inventory may list more nodes than the island needs, as for a launch.
    • Nodes leased to another run, or to another island on the same store, are left out by lease holder. Stores compare in one spelling (file:///x is /x).
    • The island must fit (fabric_groups.pick_placement) on the healthy nodes left. When nothing fits, the refusal names every node left out and why.
    • With a lease store, any unhealthy candidate refuses, because a launch pick may come to it.
  • The launch's own pick is predicted as pick_nodes makes it. The launch runs under a new holder (after a move, <prefix>-m<n>/trainer@<new identity>), so no node is its own yet. The first pick takes the free nodes in inventory order, or the free and the earlier incarnation's nodes when too few are free. The second pick is made on the rest, for when the first pick's nodes are taken meanwhile.

  • The launch sees two kinds of node as free in its store: nodes of islands on no or another lease store, and the same machine under another node name on this store (matched by SSH target or address). A predicted pick that takes such a node refuses, naming the fix: launch would take b300-0, island north's: give both islands the same lease_store, or use inventories without shared nodes.

  • Health: the real checker of the device family, built as the island's launch builds it, with one bounded SSH call per node. A joining node has no previous check, so it is judged by absolute rules:

    • a hardware Xid in the kernel log of this boot (the refusal says to fix the GPU and reboot);
    • a volatile uncorrectable ECC count above 0;
    • NVSwitch GPUs whose fabric manager is not active;
    • fewer GPUs than cards_per_node, or an NVLink fabric that is not Completed.
  • Multi-node islands also need their job ports Active:

    • The job ports are those of NCCL_IB_HCA (island --island-env over node env), else the fabric's link-layer ports.
    • Each port must run at no less than the node's new optional inventory field min_ib_gbps. With no NCCL_IB_HCA, every active fabric port is held to it. The cuda checker applies this rule, so a running island applies it too.
    • Without min_ib_gbps, a port below half the fastest job port of the island's nodes in the same fabric group is refused.
  • A check that does not read is refused, naming result.reasons. Read failures are:

    • no answer, or a check still stuck on the node;
    • an nvidia-smi, NVLink fabric or fabric manager timeout;
    • cut-off output, or (multi-node) ok(multi) None;
    • a kernel log that timed out, or that the SSH user cannot read (XID source none; the refusal names the adm / systemd-journal groups).

    A family without a checker (NullChecker), or a node with node_health: off, is a note.

  • Fabric group: fabric_groups.check_placement / pick_placement over the whole inventory.

  • Lease: a lease is the island's own only when its holder is <prefix> or <prefix>-m<n> (regex fullmatch) with part trainer. A lease that does not read is refused.

  • The write checks again. Inside the desired-state update, the other islands and leases are checked on the document being written. If another add claimed this island's learner id meanwhile, the check runs under the new prefix. Health read in the first check is reused, and only new notes and warnings are printed.

  • Docs: docs/OWN_CLUSTERS.md ("Adding an island") and docs/NODE_RUNTIME.md match the code. They also state two limits:

    • two adds on one lease store before either launches: the later launch waits up to --rl-node-lease-wait-s, 3600 s by default;
    • GB200/GB300 NVL72 trays, whose fabric manager is not on the node.

    The doc's refusal line is generated by the real checker and real leases.

TODO, to be added when the PRs they depend on are on main (at the next rebase):

Tests

  • tests/test_island_join.py has 66 tests with the parametrized cases. Health runs on the real CudaChecker over the recorded tool outputs of the node health tests, and on the real NullChecker. Leases run on real NodeLeases over a directory store.
  • Health cases:
    • Xid 79 in dmesg, volatile ECC 5 and ECC 1, fabric manager inactive on NVSwitch, a PCIe node;
    • a slow port against the same group's fastest, a rate of exactly half, min_ib_gbps with and without NCCL_IB_HCA;
    • read failures: rc 124, BUSY, cut-off output, IB unread, XID source none, fabric or fabric manager timeout; each refused, and passing with --force.
  • Lease cases:
    • own-prefix cases: r-i2-mtest/trainer and r-i2-m/pool are refused;
    • a lease read error;
    • a shared 4-node inventory: two free nodes make the island; with one node leased and one unhealthy it is refused;
    • group placement, and per-group rates;
    • store spellings.
  • The launch-pick order is checked against the real pick_nodes under NodeLeases(store, "r-i2-m1/trainer"). Inventory [c-1 (XID 79), d-2, a-3, b-4] with a-3 and b-4 held by r-i2 gives ['c-1', 'd-2'], so the island is refused. All three review scenarios are refused:
    • A: the free nodes first;
    • B: the free nodes after the earlier incarnation's;
    • D: an unhealthy candidate that no predicted pick takes.
  • Another island's machine:
    • nodes of an island on no lease store, taken by the first pick or by the second;
    • a 3-node inventory where no pick reaches the node, so the island joins;
    • the same machine under another name on one store (unit and CLI; the CLI also writes the store as file://).
  • CLI cases:
    • add and move: count, health, fabric, lease and overlap;
    • islands on no lease store or on another one;
    • islands on one lease store;
    • the dry run printing the chosen nodes;
    • absolute inventory paths from two working directories;
    • two concurrent adds, refused at the write, with and without a learner id change;
    • the island's inventory winning over the fleet's;
    • a recheck printing only new lines, and the write's recheck not repeating the first check's notes.
  • tests/test_node_health_wiring.py: a node's min_ib_gbps reaches the resident island's checker. The running check holds a port to max(first-check rate, min_ib_gbps): 400 then 200 with min 100 is bad, and 400 with min 500 is bad.
  • Read-failure cases now also cover a fabric section killed with rc 137 and a kernel log read that timed out.
  • Full local suite (4 shards, on fleet: report an island none of whose pushes is merged in N merge cycles (island_straggler); ssh: island join/leave/lag e2e #891 head 1719d07): 18222 passed, 377 skipped, 11 xfailed, 0 failed.
  • Mutations (each one fails the tests, then reverted). This round, 25 of 25 killed:
    • Another island's machine: the launch skipping foreign nodes; foreign hits ignored; aliases off, computed for no store, or refusing the same name; store spellings compared raw.
    • The launch picks: the second pick made on all nodes, or dropped; the first pick taken on all nodes; the unhealthy-candidate fallback off.
    • Wording and read failures: a timed-out kernel log read reported as restricted; rc 137 not a timeout.
    • Rates and rechecks: min_ib_gbps alone hiding a slower port; the write's recheck without seen.
    • The earlier rounds' survivors and key mutants, rerun: ECC > 1, link-layer min off, exactly half refused, the fleet's inventory winning, sick nodes in the fit, unread passing, startswith own leases, no recheck, an unbounded SSH timeout, taken ignored.
  • Earlier rounds: 34 + 33 killed.

Customer gate

  • 52 customer goldens pass.
  • The examples/k31 dry runs are run.agentic-262k and run.baremetal-b300-262k (with their full preflight plan logs) and pool.nc-mi355x-agentic-262k. Normalized, they are identical line by line to main e62f06d, for this branch and for this branch merged with main.
  • In each, the trainer launch is rc=0, the pool plan prints in full, and the only failures are the offline model_pull and sandbox status checks.
  • No change under tests/golden, tests/fixtures/k31_customer_kit or examples/k31.

🤖 Generated with Claude Code

michaellchung and others added 7 commits November 26, 2026 23:01
…reported (island_straggler)

The syncer already merges the other islands at each quorum deadline and excuses a silent
island (#865); nobody said that the island had stopped contributing. The fleet controller
now reads the syncer's merges (its tape on this host, or the copy the syncer launch uploads
to the run store, tapes/syncer/) and writes island_straggler once per stretch, in
fleet.jsonl and in the island's record, when no push of a running island was merged in N
merge cycles (one outer step of every fragment; --rl-island-straggler-cycles, default 3,
0 off). island_straggler_cleared follows once a push of it is merged again. Counting starts
at the island's join after a (re)launch. A policy decides what to do: wait by default
(nothing is stopped or relaunched), or a replacement its provider offers.

Tests: the tracker and its sources (local tape, store chunks across syncer incarnations);
the controller's event, record and policy; and an end-to-end CPU test of ssh: trainer
islands (the launcher's fleet controller over the resident ssh ops on a fake SSH cluster,
the trainer worker on a local store, the real syncer): a third island added, one removed,
and one stuck while connected. In each case the other islands' processes never restart,
the merged steps run without a gap or a repeat, no push is merged twice and the resource
ledger holds each ssh incarnation once. docs/OWN_CLUSTERS.md: "Islands that lag, join or
leave".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- count only records of this launch: a watch starts at the current syncer
  incarnation's tail and ignores records older than its start; a new pool_join
  (generation or syncer term) restarts an island's count
- bounded store reads: list after a cursor, at most 16 GETs per poll, a time
  budget, partial reads kept on a failed GET
- a flagged island that stops running is cleared, naming why
- island_straggler_unavailable names why stragglers cannot be watched
- dashboard: straggler events in the event stream, a straggler mark on the
  trainer card and in Islands now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… run store

- an island's count restarts when it leaves running, so a join its next
  incarnation writes before the controller holds it running is counted
- e2e: the stuck case over the per-island wiring (the launcher's watch of each
  launch's argv, the tape uploaded to the run store in chunks next to an earlier
  syncer's history, a relaunch while reported); assertion limits noted
- docs: what is counted, the clear reasons, island_straggler_unavailable and
  why a synced group with its own syncer VM has no report

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rom its return

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ds, restarts, tails, clocks

- a reconnect (new connection generation) or a syncer that took over (new
  term) keeps the count and the mark; only leaving running or a relaunch
  restarts them
- an island a merge lists absent is in the pool (an adopted island is counted)
- a launcher that starts on a record holding a report closes it
  (controller restarted) and judges the island again
- the store tail is established once every request of the first read worked;
  the newest incarnation is the furthest syncer (term, step), not a name
- the watch-start filter allows 10 minutes of clock skew; no other decision
  reads a clock
- silence is said only after the first record about this launch's islands,
  and taken back (island_straggler_available) when records come again
- dashboard: "straggler" in warn colour in place of "ok", on one line; the
  cleared event shows its reason only; no mark in the Fragments rows
- docs: what restarts a count, how late a report can be

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_trainer_records dropped the record's straggler, so island_now.straggler
was always None on the production path and the card never showed it.
Test the path end to end: the controller writes the mark, read_fleet_state
reads the run store, the card and its Islands now row show it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaellchung and others added 5 commits November 27, 2026 00:12
…efore it joins

yeto fleet island add --inventory PATH gives an ssh: island its node inventory (its
launch's --rl-node-inventory). Before anything is written, and in the dry run, the
inventory's trainer nodes must be as many as --gpu says, none of them a trainer node of
another ssh: island of the fleet (name or SSH target), healthy by the node health checker
of their device family (one SSH call per node; a multi-node island also checks its
NCCL_IB_HCA ports), placed in one fabric group (fabric_groups.check_placement), and not
leased to another run (NodeLeases of the inventory's lease_store). Any of them failing
refuses the add with exit 2, naming each problem, and claims no learner id. A device family
without a checker, an inventory without fabric groups or without a lease store is noted,
not refused. A check whose module is not there refuses.

The health checker, the placement check and the leases are called through the own-cluster
contract's signatures; the tests use stand-ins with those signatures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- health: the checker built as the island's launch builds it (card count,
  RDMA fabric), a single-node island judged on its GPU reasons only, a node
  with node_health off noted and not called
- leases: the inventory's lease_store (node_inventory.lease_store_of), and a
  holder judged by its run: the island's own launch (its member prefix, -m<n>
  after a move) is its own, any other run or island is refused
- tests on the real HealthResult / Checker and on NodeLeases over a directory
  store; the fabric placement check stays a stand-in until its module merges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
check_placement gets the island's whole inventory, so an inventory that
declares fabric groups refuses an island whose nodes carry none or two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ick, rechecked at the write

- health: the real checker's read failures refuse (result.reasons), --force makes
  them a WARNING; a first check judges absolute faults (any hardware Xid of this
  boot, volatile uncorrectable ECC > 0, NVSwitch with the fabric manager not
  active); job ports at the inventory's new min_ib_gbps, else at half the
  island's fastest; HCAs from {node env, island env}
- with lease_store: more candidates than needed, held and unhealthy nodes left
  out, pick_placement chooses; another island is judged by its lease holder; the
  dry run prints the chosen nodes
- own lease: <prefix>(-m<n>)?/trainer by fullmatch; overlap by name, SSH target
  without user@ and address, case-insensitive
- the inventory path is stored absolute; the write rechecks on the fresh desired
  state and under a newly claimed prefix
- yeto fleet island move --gpu ssh: runs the same checks (--inventory, --force)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a move, unread kernel log

- with lease_store, islands whose inventory has no lease_store or another one
  still take their nodes out (by name, SSH target, address)
- the launch's pick is predicted without own nodes (a new holder): the free
  nodes, then the free and the earlier incarnation's nodes in inventory order;
  either pick taking an unhealthy node refuses
- min_ib_gbps without NCCL_IB_HCA holds every active port of the fabric (the
  cuda checker, so a running island too)
- an unreadable kernel log (xid source none) and a timed-out NVLink fabric or
  fabric manager are read failures (refused, --force warns)
- the relative rate rule compares nodes of one fabric group; a recheck at the
  write prints its new notes and warnings; an Xid refusal says what to do
- docs: the window of two adds on one lease store, the NVL72 fabric manager limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…unhealthy candidate refuses

- the launch sees nodes of islands on no or another lease store, and the same
  machine under another name on this store, as free: a predicted pick that takes
  one refuses, naming the fix
- the second predicted pick is made on the rest of the first; with a lease
  store any unhealthy candidate refuses; the self-contradicting note is gone
- lease stores compare in one spelling (file:///x and /x)
- a timed-out kernel log read says so; a fabric section killed (137) is a timeout
- the running check holds a port to max(first-check rate, min_ib_gbps)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaellchung
michaellchung force-pushed the own/island-straggler branch 3 times, most recently from 05dccd8 to 9028167 Compare November 26, 2026 22:48
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