AI Operations

GPU Infrastructure Monitoring and Recovery for Fleet Incidents: Automated Node Drain, Job Requeue and Closed-Loop Remediation

Closed-loop GPU infrastructure monitoring and recovery means software takes a faulty node in a GPU fleet from first alert to repair. It isolates the node, restarts its jobs on healthy nodes, repairs it and tests it before it rejoins the pool of working nodes.

That chain replaces the pager alert to an on-call engineer and the manual retry. Lablup, which builds GPU cluster software, measured both methods on one 63-node NVIDIA B200 cluster.

Automated retry chains got training running again in 33.3% of cases, against 12.5% for manual recovery, and median downtime fell from 3.3 to 1.9 hours.

TL;DR: Enable the stages in this order: monitor-only, quarantine, drain, requeue, validation, then software remediation, with hardware repair left to a person. The Lablup figures come from one cluster and one training run, so measure your own fleet's recovery times before relying on these numbers.

Before You Start: What GPU Recovery Automation Needs in Place

Start in monitor-only mode, where each system alert goes to a person. The loop needs these six things in place before you automate a stage:

  1. A scheduler that can cordon and drain nodes: a cordon marks a node closed to new work. This walkthrough covers Kubernetes and Slurm, the job scheduler common on training clusters.
  2. A fault signal source: GPU health monitoring and system logs, such as the health monitors in NVIDIA's open-source NVSentinel, which read DCGM (NVIDIA's Data Center GPU Manager) and syslog.
  3. Checkpointing in your jobs (Step 2): a saved training state each job can restart from, or a written decision that drained jobs lose their progress.
  4. Spare node capacity (Step 3): idle nodes ready to take displaced jobs.
  5. Out-of-band access (Step 4): a serial console, meaning a direct cable into each server. It keeps working through an operating system crash or a failure of the server's remote-management chip (BMC).
  6. A named owner: the person who takes the faults your rules route away from the automation.

The Five Stages of a Closed Recovery Loop

Self-healing in a GPU cluster runs as a chain of five stages:

  1. Quarantine: mark the node ineligible for new work as soon as its logs show a fault signature, a known error pattern such as a GPU driver error code.
  2. Drain: stop scheduling new work on the node, and evict or finish its running jobs.
  3. Requeue: restart the displaced jobs on other nodes.
  4. Remediate: attempt a repair, with software fixes before hardware work.
  5. Validate: test the node before it rejoins the pool.

Rafay, a GPU cloud platform vendor, describes NVSentinel as separate modules for each part of this loop. NVSentinel can run in monitor-only mode or in closed-loop mode, so operators can turn modules on one at a time.

NVIDIA Mission Control, NVIDIA's cluster operations software, documents a comparable loop for Slurm clusters. The table lines up each stage with each system's documented behavior.

StageNVSentinel (as Rafay documents it)NVIDIA Mission Control (docs v2.3.0)
QuarantineA fault quarantine module cordons the node, following rules written in CEL, a small expression languageA failed health check puts the node in the Slurm DRAIN state
DrainA drain module evicts running workloads namespace by namespaceThe DRAIN state keeps new jobs off the node
RequeueNot covered by the sources cited hereA failed pre-job (Prolog) check puts the node in DRAIN and requeues the job
RemediateA janitor module reboots or terminates the node through the cloud APIThe BREAKFIX_TRIGGER runbook, an automated procedure, checks for drained nodes at 5-minute intervals
ValidateNot covered by the sources cited hereA validation runbook runs after each repair

Step 1: Decide What Triggers Automated GPU Fault Response

Trigger rules decide which faults the automation acts on and which go to a person. Count your recent interruptions by cause first, using your incident records.

Write the rules against the fault signatures your fleet logs: XID errors (fault codes from the NVIDIA driver), GPU memory (ECC) error counts and network card (NIC) link errors.

Lablup's cluster took a node out of service for XID codes that need a GPU reset or reboot (79, 119, 145 and 149). It retried the job on the same node for application-level codes (31, 43 and 94).

We'd auto-quarantine a node on an XID code that needs a GPU reset or reboot, or on a NIC link failure. Send unclear cases to a person, such as a node that runs slower than its peers without logging an error code.

You're done with this step when each fault signature in your fleet maps to one action (auto-quarantine, alert-only or human triage) in a written rule.

Step 2: Draining a Faulted GPU Node Without Losing the Job

Draining takes the node out of the scheduling pool and gives its running jobs a chance to save their progress. On Kubernetes, draining means a cordon followed by eviction of the node's pods, the groups of containers Kubernetes schedules as one unit.

Kubernetes waits for an eviction grace period before it stops a pod, so use that window to save the job's state. Your scheduling and device-plugin settings decide how cleanly pods leave the node.

Our Kubernetes AI orchestration guide explains those settings. Slurm marks the node with a DRAIN state, which Mission Control sets when the node fails a health check.

A drain without a recent checkpoint turns a hardware fault into lost training progress. If your jobs don't checkpoint, the drain still protects other jobs on the fleet, and the faulted job restarts from the beginning.

Move on once the scheduler shows the node as cordoned or in DRAIN. Each job that ran there should have a fresh checkpoint or an entry in your lost-work log.

Step 3: Requeueing the Job and Finding Replacement GPU Capacity

Requeue turns a hardware fault into a scheduling problem. Plan for two outcomes before a real outage:

  1. A checkpoint and a spare node both exist: the scheduler restarts the job from its last checkpoint on a healthy node. That node first passes a pre-job health check, such as Mission Control's Prolog check.
  2. The checkpoint is stale or spare nodes run out: the job waits in the queue. Lablup traced repeated retry failures to this case, because its 60-node training jobs couldn't restart while fewer than 60 healthy nodes were free.

Size spare nodes as part of the recovery design. Lablup's 63-node cluster kept 3 nodes spare for its 60-node training jobs.

Our guide to optimizing GPU clusters for large language model training explains the bottlenecks that slow healthy training runs.

This step holds when the displaced job runs from a checkpoint on a healthy node, or waits in the queue with a named owner and an estimated start time.

Step 4: Automated GPU Node Remediation and Hardware Repair

Remediation splits into a software tier and a hardware tier:

  1. Software tier: a reboot or GPU reset fixes the fault, such as a hung driver or process. Both NVSentinel and Mission Control automate this tier (see the table above).
  2. Hardware tier: a technician replaces a memory module or a GPU, or reseats a cable. NVSentinel's remediation module hands the node to your existing repair process. Mission Control opens a support ticket for a fault it can't fix in software.

A white paper from Vertiv, which sells serial console servers, says sites with serial consoles can resolve up to 60% of incidents in under 15 minutes.

Sites without that access send a technician to the same incidents, which leaves the cluster idle for 1 to 4 hours on average. Treat both figures as a vendor's claim.

Check that each drained node has a named status: a software fix in progress, an open repair ticket or an out-of-band recovery session.

Step 5: Validating a Recovered GPU Node Before It Rejoins the Pool

A recovered node passes a health check before it takes work again. Skip that check and a node can flap: it rejoins, faults again and runs the loop twice for one fault.

Mission Control runs these checks before each job (Prolog) and after it (Epilog), and a failed check returns the node to DRAIN. NVIDIA ships both checks turned off and advises enabling them after a clean round of node health tests.

Loaded drivers don't prove a node can train. Run a real workload on it and track GPU utilization metrics such as model FLOPs utilization (MFU) and model bandwidth utilization (MBU).

The node is ready when it has passed a check that exercises the part that failed, and the scheduler has put it back into service.

Run One Fault Through the GPU Recovery Loop

Run one test fault through the chain before the chain handles a live fault. Use a spare or test node in a maintenance window, and pick a fault signature your rules send to auto-quarantine, such as a NIC link failure.

Confirm the check at the end of each step, and record each stage's duration:

  1. Trigger: the time from the first fault signal to quarantine.
  2. Drain: the time until the scheduler shows the node cordoned or in DRAIN.
  3. Requeue: the time until the job restarts or enters the queue with an owner.
  4. Remediate: the time until the node gets a named repair status.
  5. Validate: the time until the node returns to service.

The time from first signal to return to service becomes your baseline for later tests. The test passes when each step's check holds in order, with people acting at the handoff points in your trigger rules.

If one check fails, fix that stage before turning on the next stage.

How Much GPU Recovery Should You Automate First?

Automate quarantine first and software remediation last, and leave hardware repair to a person. Two-thirds of Lablup's automated retry chains still failed, so keep a person as the fallback at each stage.

Turn on each stage once the stage before it runs without problems:

  1. Monitor-only: collect signals, tune thresholds and count false alarms.
  2. Quarantine: auto-cordon nodes on your highest-confidence fault signatures.
  3. Drain: add eviction once quarantine stops cordoning healthy nodes.
  4. Requeue: turn on scheduler-driven restarts once drains finish with saved checkpoints.
  5. Validation: put the pre-return health check in front of the pool, ahead of automated repair.
  6. Remediation: enable automated reboots and resets last, and send hardware repair to a technician through a ticket.

Where zWARE Fits in GPU Recovery Automation

zWARE is our software for running GPU clusters. Its product page lists real-time health tracking for GPUs, network cards and power, with automated recovery.

The same page cites customers reaching 30 to 40% higher effective GPU utilization, a first-party figure without an independent test. That figure measures utilization, so it doesn't tell you how fast a node recovers.

Check zWARE against the end-of-step checks above before relying on it for a stage.

GPU Recovery FAQ

Does automated GPU recovery replace on-call engineers?

Automated recovery takes routine hardware faults off the on-call queue, so engineers get fewer pages. Hardware repairs and unclear faults, such as a slow node with an empty error log, still go to an engineer.

How does the recovery loop differ from checkpoint-and-restart planning?

The recovery loop picks the response to a fault: which node to drain, which action to take and where the job restarts. Checkpoint-and-restart planning sets what that response costs in lost progress and restart time, so a fleet needs both plans.