Limitations of Node-Level Health Checks and Goodput Loss
Large-scale model training jobs can fail even when all nodes appear normal. A GPU with subtle faults can pass stress tests while returning incorrect values, and even if a job is halted due to NCCL timeouts, Slurm still shows it as 'running'. If a device plugin crashes in a node, the error message does not mention the plugin. Teams typically discover issues only after the loss curve diverges or the job fails, by which time computing resources have already been consumed. Each of these failures reduces goodput, the ratio of cluster time spent on meaningful training.
The existing HyperPod resilience feature targets single-node hardware. The Health Monitoring Agent (HMA) monitors GPU errors (Xid, NVLink), EFA errors, and kernel errors. The InstanceStress deep health check inspects GPUs, GPU memory, NVLink, and EFA devices with DCGM level 4 diagnostics. The InstanceConnectivity check performs NCCL tests between GPU instances and NCCOM tests in Trainium. While these confirm that the hardware of each node is operational, they cannot ascertain the following three:
- Whether the GPU is computing correctly
- Whether the job is still in progress
- Whether the Kubernetes components the job depends on are healthy
"Each of these failures reduces goodput, the ratio of cluster time spent on meaningful training."
The HyperPod blog post defines goodput in three ways.
| Goodput Type | Definition |
|---|---|
| Scheduling Goodput | The ratio of time when all resources required for the job are available |
| Runtime Goodput | The ratio of time during which the job is making progress |
| Program Goodput | The ratio of actual achievement compared to hardware peak performance |
Node-level checks only address scheduling goodput. Three types of failures that undermine runtime goodput and program goodput are overlooked.
1. Numerical Faults: GPUs that pass all hardware tests compute incorrect results. The first signs are NaN or infinite losses in production runs. Meta reported that out of 419 unexpected interruptions during the 54-day pre-training of Llama 3 405B, 6 were due to Silent Data Corruption. 2. Hung Jobs: NCCL timeouts, stalled data pipelines, and deadlocks halt jobs without terminating them. Jobs remain occupying GPU and memory while Slurm shows them as 'running'. 3. Cluster-Level Failures: Occur at the Kubernetes layer. This includes device plugin crash loops, essential DaemonSets not starting, and mismatched ranks in NCCL collective across different nodes. HMA views each node independently, so it misses these issues. Often, when a job fails, the error does not indicate which pod or node is at fault.
Three New Capabilities: Covering All Phases of Provisioning, Execution, and Continuous Monitoring
This announcement introduces three features targeting each of the aforementioned failure types. Each feature addresses a different point in the training execution.
| Feature | Target Cluster | Operating Point | Detection Target |
|---|---|---|---|
| MultiNodeTrainingValidation | EKS Orchestrated HyperPod | At provisioning or on-demand | GPU computation accuracy (NaN/Inf losses, timeouts) |
| HyperPod Kubernetes Resource Monitoring Agent | EKS Orchestrated HyperPod | Continuous | Kubernetes layer failures (plugin crash loops, missing DaemonSets, tainted nodes) |
| Hung Job Detection | Slurm Cluster (new), EKS (existing support) | During job execution | Progress stalls (NCCL timeouts, pipeline stalls, deadlocks) |
"Each feature recovers lost goodput at different points in the training execution."
Hung job detection has been newly added to Slurm clusters. In EKS clusters, hung job detection is already provided through the HyperPod training operator, and Ray Train jobs inherently have hung detection capabilities.
MultiNodeTrainingValidation: Early Detection of Numerical Faults
MultiNodeTrainingValidation is a new deep health check for EKS orchestrated HyperPod clusters. At instance provisioning or during on-demand execution, a fixed small workload is first trained on each instance, followed by training across the same type of instances. Instances are deemed failed if the loss becomes NaN or infinite, or if training does not complete within a specified time. Since the workload is fixed, failures point to hardware rather than model or code changes. Failed instances are labeled as failed, and if automatic node recovery is enabled, they are rebooted or replaced.
This check adds two tests.
- Tiny Megatron Test: A short training run of Megatron-LM on a single instance, targeting all GPUs of the instance.
- Megatron Test: A distributed training run including EFA communication between same-type instances.
The relationship with existing deep health checks is as follows.
| Check Name | Scope | Inspection Content |
|---|---|---|
| InstanceStress | Single Node | DCGM Level 4, GPU/Memory/NVLink/EFA |
| InstanceConnectivity | Between Nodes | NCCL (GPU) or NCCOM (Trainium) |
| MultiNodeTrainingValidation | Between Nodes (Training Workload) | Actual training loss NaN/Inf, completion time |
Prerequisites: EKS orchestrated HyperPod cluster, EFA supported NVIDIA GPU instance group (e.g., ml.p5.48xlarge). The Megatron test runs between same-type instances.
HyperPod Kubernetes Resource Monitoring Agent: Visualizing Cluster Layer Failures
HyperPod Kubernetes Resource Monitoring Agent continuously monitors the Kubernetes layer of EKS clusters. The main detection targets are as follows.
- Device plugins that have fallen into crash loops
- Essential DaemonSets not starting on new nodes
- Tainted nodes
When a job fails, it reports the related pods and nodes through Kubernetes events and Amazon CloudWatch logs. Unlike the existing HMA that only looks at node hardware, this agent checks the health of cluster-level components, addressing issues where "the error did not indicate which pod/node was the cause."
Hung Job Detection: Automatic Recovery from Slurm Job Stalls
Hung Job Detection has been newly introduced in Slurm clusters. Agents on each node monitor the job's output, GPU activity, or custom log patterns. Upon detecting a progress stall, it logs an event to CloudWatch and cancels the job according to the configuration, allowing Slurm to requeue it.
- Node Agent Monitoring (Output/GPU/Log Patterns)
- CloudWatch Event Logging
- Job Cancellation (Optional)
- Slurm Requeue
Cost-Saving Simulation: Case of 256 H100 GPU Cluster
The blog presents a specific cost scenario.
| Scenario | Duration | Instance-Hours | GPU-Hours | Estimated Cost (Northern Virginia, On-Demand $66/Instance-Hour) |
|---|---|---|---|---|
| No Detection (1 AM - 9 AM) | 8 hours | 256 | 2,048 | Approximately $16,900 |
| 15-Minute Detection Rule Applied | 15 minutes | 8 | 64 | Approximately $530 |
| Savings | - | 248 | 1,984 | Approximately $16,400 |
"Setting the hung job detection rule to 15 minutes allows HyperPod to cancel stalled jobs and requeue in Slurm. The hung cost is reduced to about $530, saving approximately $16,400."
This figure demonstrates that improvements in runtime goodput lead directly to TCO savings.
Practical Implications: So What from Developer, Operator, and Business Perspectives?
This update directly addresses the long-standing pain point that "even if nodes appear healthy, training can fail." Developers can filter out hardware faults at the provisioning stage without changing training code, operators can immediately recognize Kubernetes layer failures through events and logs, and Slurm users can automatically block budget waste caused by stalled hung jobs. Notably, the method of validating numerical faults using fixed Megatron-LM workloads establishes reproducible hardware validation criteria by excluding model and code variables. The addition of hung job detection to Slurm clusters also signifies the completion of runtime goodput protection across all three major orchestration environments: Slurm, EKS, and Ray.