Skip to content

[Feature]: Bridge Slinky Slurm drains into NVSentinel health events #2611

Description

@lalitadithya

Prerequisites

  • I searched existing issues

Feature Summary

Add an opt-in mixin that turns on NVSentinel's Slurm Drain Monitor for our six Slinky recipes. The monitor watches Slinky worker pods, reads the Slurm drain reason, and turns it into an NVSentinel health event.

This is the cheapest addition in the chart. It adds one image, needs read-only RBAC, and needs no datastore, no credentials, and no remediation components. It is independent of #1014.

Scope is the platform: slurm path only.

Problem/Use Case

A Slurm health check script drains a node. That fact stays inside Slurm.

Kubernetes never learns it. NVSentinel never learns it. Our health check reports the node as fine, because from the Kubernetes side it is fine. The operator then runs two alerting stacks for one hardware failure, and the drained nodes pile up until somebody reads sinfo.

This is the mirror image of the preflight gap. Preflight gives Kubernetes the gate that Slurm already has in the prolog. The drain monitor sends Slurm's own findings back into the health pipeline, so both paths report through one system.

Proposed Solution

Ship a mixin for the six platform: slurm leaves. Mixins already carry shared platform content, so this matches platform-kubeflow.

The integration is Slinky-native, and I verified it on both sides. The Slinky NodeSet controller sets a SlurmNodeStateDrain pod condition on worker pods. Its docs state that the condition's .Message field carries the Slurm drain reason. The monitor reads exactly that condition and that field.

We already rely on this condition ourselves. docs/user/slinky-slurm-enroot.md waits on condition=SlurmNodeStateDrain=True during node maintenance.

Operator drains are ignored by design. The monitor skips any reason that begins with slurm-operator:, which is the prefix Slinky uses for its own actions. Only external drains reach the pipeline, so routine operator activity creates no noise.

Three values need our attention:

Value Chart default What we need
namespace slurm Correct already. Our Slinky cluster runs in slurm.
labelSelector app.kubernetes.io/name=slurmd,app.kubernetes.io/component=worker Needs checking. Our own runbook selects workers with app.kubernetes.io/instance=slinky-slurm-worker-slinky. The chart default assumes a standard Helm Slurm, and Slinky pod labels come from the operator rather than the chart.
processingStrategy EXECUTE_REMEDIATION Set STORE_ONLY while we validate pattern coverage.

The default pattern matches drain reasons prefixed [HC], maps them to CONTACT_SUPPORT, and sets isFatal: false. That means a human reviews the node. No pattern needs isFatal: true for this to be useful.

Success Criteria

  • A mixin turns on slurmDrainMonitor and is referenced by the six platform: slurm leaves.
  • labelSelector is verified against a live Slinky NodeSet and set explicitly in the mixin.
  • processingStrategy is set explicitly rather than inherited.
  • A test drains a Slinky worker with an [HC] reason and asserts a health event appears.
  • A test asserts a slurm-operator: drain produces no event.
  • recipes/checks/nvsentinel/health-check.yaml asserts the deployment on Slurm recipes only.
  • docs/user/container-images.md lists the added image, and the mirror and scan jobs cover it.

Alternatives Considered

  • Leave Slurm alerting separate. Today's state. It means two alerting paths for one failure, and drain reasons that no Kubernetes tooling can see.
  • Write a Kubernetes Object Monitor CEL policy instead. This could watch the same condition. We would then rebuild the reason parsing, the compound-reason splitting, and the slurm-operator: filter that this component already has.
  • Enable it for every recipe. The monitor watches a namespace that only exists on Slurm recipes. Elsewhere it would run and find nothing.
  • Wait for [Feature]: Add remediation-enabled overlay profile for clusters with cloud-provider credentials #1014. Not needed. The monitor produces node conditions on its own, exactly as gpuHealthMonitor does today.

Component

Multiple components

Priority

Important (would improve my workflow)

Compatibility / Breaking Changes

We expect none. Only the six Slurm leaves reference the mixin, and the monitor cannot change cluster state.

Operational Considerations

  • Read-only. The ClusterRole grants pods get, list and watch, and nothing else. The component cannot cordon, evict, label or delete anything.
  • Images. The set goes from 6 to 7. The one image is ghcr.io/nvidia/nvsentinel/slurm-drain-monitor.
  • Scheduling. The monitor is a Deployment that mounts the platform-connector socket at /var/run/nvsentinel. It must land on a node where the platform-connector DaemonSet runs, so the mixin needs node selection that guarantees this.
  • Cross-namespace read. The monitor runs in nvsentinel and reads pods in slurm.
  • EXECUTE_REMEDIATION is inert today. With the remediation components off, a health event becomes a node condition and nothing acts on it. If [Feature]: Add remediation-enabled overlay profile for clusters with cloud-provider credentials #1014 later lands and a recipe enables remediation, this setting starts to matter, so we should set it deliberately now.
  • Validation gap. Upstream's Slinky demo runs against a mock Slurm operator, so a real Slinky cluster test is worth doing before we call this supported.
  • Version. Verified against the pinned v1.20.0 and Slinky 1.2.0. Values need a re-check on the v1.22.0 bump (Bump nvsentinel to v1.22.0+ and re-enable metadata-collector on VR200/RKE2 #2596).

Are you willing to contribute?

No response

Activity

  1. added
    theme/resilience
    on Sep 8, 2026
  2. mchmarny commented on Sep 8, 2026

    @mchmarny
    Member

    Triaged: confirmed at unset / Backlog. Scope remains valid but is not ready for immediate execution; current placement is intentional.

  3. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/docstheme/resilience

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions