Skip to content

spored: emit q0 readiness tags (phase/ready/detail) + mount/slurmd health probes #109

Open

Description

@scttfrdmn

Context

spored (the on-node agent, spawn/cmd/spored + spawn/pkg/agent) is a mature lifecycle agent: it reads IMDS identity, reads spawn:* config tags, writes spawn:* telemetry tags (spawn:logged-in-count, spawn:compute-seconds, …) via CreateTags, handles TTL/idle/spot/hibernation, and runs under systemd.

queuezero uses an EC2-tag readiness control channel (ARCHITECTURE §11): an off-node Observer reads q0:phase / q0:ready / q0:detail from each node for phase-3 enrollment (slurmd checked-in + mounts healthy). spored does not currently write the q0: namespace and has no phase/readiness/mount-health concept.

To unblock itself, queuezero built a small reference reporter: cmd/q0-spored + internal/spored (SDK-free Reporter with MountProbe/SlurmdProbe and an IdentitySource/TagWriter/Probe port design; round-trip-tested against the Observer's tag parser via a shared internal/tags constants package).

Ask (eventual convergence — not urgent)

Fold the readiness convention into spored so there is one on-node agent, not two:

  • Write q0:phase (booting/enrolled), q0:ready (true/false), q0:detail once health probes pass.
  • Add mount-health (distinct-mountpoint check — the dead-Lustre catch) and slurmd-liveness probes, gated behind config so non-Slurm spawn users are unaffected.
  • Keep it a sensor, not an orchestrator — report node-truth via tags; the off-node reconciler decides. (queuezero deliberately excluded spored's idle-kill/self-termination brain for collective cohorts.)

The queuezero reference implementation (internal/spored/reporter.go, probes.go) is the design to port; the internal/tags keys are the contract both sides must share.

Acceptance

  • spored can emit the q0: readiness tags with mount/slurmd health behind a config flag.
  • The tag keys/values match what queuezero's Observer parses (so writer and reader can't drift).

Filed from queuezero Phase 2c. This is the cross-repo convergence noted in queuezero's CLAUDE.md / ARCHITECTURE §15.


Migrated from spore-host/spore-host#333 — spawn issues belong on this repo.

Activity

  1. added
    enhancement
    area:spored
    area:queuezero
    on Jun 12, 2026
  2. added this to the Later milestone on Oct 19, 2026
  3. modified the milestones: Later, Post-1.0 on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:queuezeroarea:sporedenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions