Retrieved article excerpt
Open article · Retrieved 2026-10-16T03:40:13.216974+00:00
[Gpu](https://medium.com/tag/gpu?source=post_page---header_tags--d62b03a96d7a-----------------------------------------)
[Site Reliability](https://medium.com/tag/site-reliability?source=post_page---header_tags--d62b03a96d7a-----------------------------------------)
[Machine Learning](https://medium.com/tag/machine-learning?source=post_page---header_tags--d62b03a96d7a-----------------------------------------)
[Artificial Intelligence](https://medium.com/tag/artificial-intelligence?source=post_page---header_tags--d62b03a96d7a-----------------------------------------)
[Cost Efficiency](https://medium.com/tag/cost-efficiency?source=post_page---header_tags--d62b03a96d7a-----------------------------------------)
# Reliable GPU compute for large training & inference jobs
[Netflix Technology Blog](https://netflixtechblog.medium.com/?source=post_page---byline--d62b03a96d7a-----------------------------------------)
[Netflix Technology Blog](https://netflixtechblog.medium.com/?source=post_page---byline--d62b03a96d7a-----------------------------------------)
13 min read
·
1 day ago
--
3
[Listen](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Dd62b03a96d7a&operation=register&redirect=https%3A%2F%2Fnetflixtechblog.com%2Freliable-gpu-compute-for-large-training-inference-jobs-d62b03a96d7a&source=---header_actions--d62b03a96d7a---------------------post_audio_button--------------------)
Share
*How we detect failing GPUs and network fabric, remediate machines automatically, and let long-running jobs survive hardware loss.*
Authors: [Nick Rutigliano](https://www.linkedin.com/in/nick-rutigliano/), [Argha C](https://www.linkedin.com/in/argha-c/), [Samartha Chandrashekar](https://www.linkedin.com/in/samartha/)
Open Netflix, and the home screen is assembled for you: which rows appear, the order they appear in, the titles within them, and the artwork for each title are chosen by machine learning models trained on how hundreds of millions of members watch. Personalization is one of the most widely used things we build, and members feel it every time they open the app. Like a growing share of Netflix, it runs on GPUs, which train those models and increasingly serve them live.
Those GPUs have to stay healthy for that experience to hold up, and keeping them healthy is harder than it sounds. A single large training job can run for weeks across hundreds of GPUs spread over many machines. It runs as a gang: the ranks move in lockstep, exchanging data every step, so the job advances only as fast as its slowest participant and stops entirely if one participant dies. Every GPU, every high-speed network adapter, and every interconnect must keep working throughout the run. At the scale at which modern machine learning runs, individual GPUs and network links can fail during a run, so the underlying platform must be prepared for this and handle it without a person in the loop.
This post describes how we keep our GPU infrastructure healthy for training and inference. We cover how we detect failing hardware before and during jobs, how we automatically remediate a bad machine, and how we let a long job survive the loss of a machine. These training workloads run on our modern Kubernetes-native Compute platform.
## Why GPU reliability matters
Netflix aims to entertain the world, and machine learning has been part of how we do that for years, from the recommendations that help members find something to watch to the systems that help produce and promote titles. As generative AI advances, we are investing in it on both sides of the business: for members, through better recommendations and higher-quality promotional assets; and for storytelling, through creative tools for our production partners.
All of this runs on GPUs, for both training and inference, and GPU capacity is among the fastest-growing and most expensive parts of our infrastructure. That makes reliability a business concern on two fronts. — -
- Availability: a training run that loses a machine, or an inference service that cannot get healthy capacity, delays work that members and creators depend on.
- Cost efficiency: a GPU sitting idle behind a slow neighbor, or a whole machine pulled from the pool because one device is degraded, becomes capacity we paid for and are not using. Higher reliability and higher utilization mean more useful work per GPU, which is equivalent to spending less to do the same work.
Inference is a growing share of that GPU footprint as more of these AI features reach members, so the reliability and efficiency that matter for multi-week training runs increasingly matter for always-on serving too.
## Why basic health checks are not enough
We start from the baseline provided by the cloud provider. Cloud providers run instance status checks on virtual machines: a system status check for the underlying host’s power, network, and hardware reachability; an instance status check to verify that the operating system is up and reachable; and a check on attached storage. It emits scheduled maintenance events when it plans to retire or reboot a host, and it can automatically recover an instance that becomes impaired. We use all of these, and the maintenance events feed one of our own checks. They catch a machine that is down, unreachable, or slated for maintenance, and they stop at the instance level. They confirm the box is up and reachable. They do not verify that each GPU, its on-chip memory, its interconnect, and its network fabric are healthy enough to support distributed training.
The next step most teams take is a GPU-level check to confirm that the driver responds and that the GPUs are visible. That catches a dead or missing GPU, but misses the cases that take the most time.
- A GPU can answer a status query and still be faulty once a workload touches it. A fault in on-chip memory or in the firmware that manages the device can remain invisible until a job allocates memory or runs sustained compute, at which point the job fails or slows.
- A high-speed network adapter may be present but show fewer links than expected. Collective operations still run, at a fraction of the bandwidth, so the job does not crash. It crawls, and the cause is easy to miss.
- A check can fail in ways that leave a faulty machine looking healthy. The diagnostic tool can hang when the driver hangs, and a naive check that waits on it hangs too. A binary that the check depends on can go missing after a driver upgrade, causing the check to stop running and report nothing. A check that can silently stop running is worse than no check, because it gives false confidence while the machine keeps working.
Because a job runs as a gang, any one of these on any one machine can degrade or stop the whole job, and none of them shows up in an instance-level check or a driver-responds check. The health system has to assume the hardware can lie and the tools that inspect it can break.
Press enter or click to view image in full size
*A machine can pass a basic check and still be faulty. Layered checks, timeouts, a fallback path, and checks that fail when a dependency is missing close these gaps.*
## Our approach
We treat reliability as four layers, each catching what the layer below cannot:
**1/ Node and hardware health:** find bad GPUs, network adapters, interconnects, memory errors, and thermal issues, then taint or recycle the machine.
**2/ Scheduler and platform:** retry at the task & job level, validate a machine before it takes work, and drain & recycle machines safely.
**3/ Training loop:** checkpoint and use elastic workers so a job survives losing a machine.
**4/ Observability:** metrics, service-level objectives, and failure attribution across the other three.
The first two layers keep hardware problems away from jobs. The third accepts that some loss is unavoidable and makes it cheap. The fourth tells us whether the first three are working.
Press enter or click to view image in full size
*Four layers: Each catches what the layer below cannot.*
## How the health checks work
Checks run in two tiers. Device-level checks look at each GPU. A node-level agent, built on the open-source Kubernetes [node-problem-detector](https://github.com/kubernetes/node-problem-detector), runs on every GPU machine every 30 seconds and turns check results into conditions on the Kubernetes node, the same mechanism Kubernetes uses to mark a node NotReady. Controllers watch those conditions and decide whether the machine can take on work.
GPU device checks are built on NVIDIA’s [DCGM](https://developer.nvidia.com/dcgm) for driver-reported error codes, uncorrectable memory errors, interconnect integrity, and thermal state, and networking adapter checks inspect the host state for the count and link state of the [Elastic Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) interfaces that carry cross-machine traffic. A few of these checks deserve detail.
Press enter or click to view image in full size
*Two-tier health checking. Device-level and node-level checks become Kubernetes node conditions, which controllers then turn into taints, drains, terminates, and replaces.*
- *Failing closed:* if the driver or the diagnostic tool is unresponsive, the check times out and marks the machine unhealthy. A check that cannot reach the hardware reports a problem rather than passing, so a wedged driver takes the machine out of rotation rather than letting it hide behind a hung tool.
- *A fallback path:* driver error codes are the strongest signal that a GPU has faulted, but the tool that reads them can itself be broken in certain failure modes! When it does, we read the kernel log dmesg directly for those codes, so no Xid or SXid errors are missed.
- *Our own fatal-error map:* vendor driver error catalogs lag newer GPU generations and do not always match what we see in production, so we keep our own mapping of which codes are fatal for each GPU family. A code that means reset-the-GPU in one generation can be benign in another, and one GPU generation emits a burst of normally-fatal code on every healthy boot, which we learned to treat as noise rather than drain fresh machines.
- *No silent no-ops:* a check fails when a required dependency is missing. This one came from an upgrade that dropped a binary the network-adapter check relied on. The check quietly stopped running, and machines with the wrong number of adapters shipped for days before the slow jobs were traced back to them. Now a missing dependency fails the check.
## Turning a bad machine into healthy capacity, automatically
When a check fails, the machine’s node condition changes, and controllers take over. We distinguish two levels. A problem condition blocks new work from landing while jobs are running, because pulling a job off a machine is disruptive, and many problems clear on their own. If the condition persists beyond a tolerance window, it escalates to a failure condition, which evacuates the machine, drains its tasks (overriding the normal disruption limits to move quickly), terminates it, and replaces it.
## Get Netflix Technology Blog’s stories in your inbox
Join Medium for free to get updates from this writer.
Subscribe
Subscribe
Remember me for faster sign in
[Karpenter](https://karpenter.sh/) node auto-repair is used on our compute stack. We have customized it with a policy and a controller that maps each node condition to the duration we tolerate it before acting, so a fast-fatal error is actioned within minutes. At the same time, a flaky signal gets a longer window, and a cap limits how much of a cluster we will disrupt at once, so a bad rollout of the checks themselves cannot cascade into tearing down a whole cluster. We plan to upstream this feature to all Karpenter users.
Press enter or click to view image in full size
*Graded remediation. A problem is tolerated and may clear; a persistent f