Skip to main content

Chaos engineering for GPU clusters, explained without the hype

· Do Minh Tuan · Future Pulse 🔮

Chaos engineering for GPU clusters, explained without the hype

Chaos engineering is the practice of injecting failures into a system on purpose so you find the weak points before a customer does. The idea is familiar in web infrastructure. Applying it to GPU clusters is newer, and it is the part of AI infrastructure I find most underdiscussed, because a failed training run is not a bad afternoon. It is money burned while nobody gets a result.

A GPU cluster is a set of accelerators linked by a fast network, working together on the same job. The failure modes are not the ones I expected from web work. Nobody is refreshing a page. A single node dropping out of a training run can stall the whole job, and the recovery depends on whether the framework wrote a checkpoint recently. That is the real cost of an outage here: lost progress you have to pay for twice, not downtime.

Two bottlenecks that cause most of the pain

RDMA, or Remote Direct Memory Access, lets one machine read memory on another without going through the main processor. It is what makes fast interconnect fast. When RDMA misbehaves, the symptom is often not an error. It is a slowdown, a job that takes much longer with no obvious reason, which is worse because nobody investigates a slow job with the same urgency as a failed one.

NUMA, or Non-Uniform Memory Access, is about memory being local to a processor. On a multi-socket machine, reading memory attached to the other socket is slower. If a GPU process gets scheduled so that it keeps reaching across sockets, performance drops in a way that looks like the hardware is tired. The fix is usually placement and configuration, and the only way to know you have it right is to test under conditions that expose it.

Chaos engineering for this world means simulating network slowdowns and memory delays deliberately, then watching whether the job survives, slows gracefully, or fails. That is more useful than a benchmark, because benchmarks run on a healthy cluster and production does not.

What it looks like in practice

At small scale, I do not think you need a special platform. You can add latency to a container's network interface with standard Linux traffic control, wait, and see what happens. The point is the habit of asking what the system does when a link is slow, a node disappears, or a disk fills in the middle of a checkpoint.

The first thing I would test is checkpoint recovery. Kill a worker mid-run and measure how much progress is lost and how long the restart takes. That single test tells you more about your resilience than any architecture review, and I would expect it to expose a gap between the checkpoint interval and the cost of losing an hour of training.

The second thing I would test is the slow network. Add latency and see whether the job degrades or hangs. A hang is worse, and it worries me more, because it consumes the cluster while producing nothing, and the alert may not fire until someone notices the loss curve is flat.

The third is the failure that only appears at scale, when several nodes fail close together. That is hard to simulate cheaply, and it is where I expect most of the interesting bugs to live.

Where I get sceptical

Chaos engineering without good observability is just breaking things. If you inject a fault and cannot tell what happened, you have learned nothing and lost time. The prerequisite is metrics per node, logs that survive the failure, and a way to see the job's state. The temptation is to want the exciting part, the fault injection, before the boring part, the dashboards.

The second scepticism is about blast radius. A test that takes down a shared cluster during a deadline is not a test, it is an incident you caused on purpose. I would run these experiments on a dedicated slice, during a window agreed with everyone who depends on it, with a kill switch. That is project management more than engineering, and it is the part that gets skipped.

The third is the temptation to treat chaos as a maturity badge. A team that has not fixed its backup restore should not be injecting network faults. Fix the basics first. The advanced practice only pays off once the simple failures are handled.

What a small team should take from it

You do not need a multi-million dollar cluster to use the idea, and you do not need to copy the GPU-specific parts. The transferable habit is to test failure on purpose. Kill your database during a staging run. Pull the network on a worker. Restore a backup and see whether the application actually starts. Those exercises cost an afternoon and find problems that a code review never will.

For a founder in Vietnam spending real money on GPU hours, the highest-value version is checkpoint discipline. Make sure a long job can resume, and make sure the cost of a lost run is something you have measured rather than assumed. That is less exciting than chaos engineering and it saves more money.

The failure catalogue is what I would want from the teams doing this at scale: the specific ways GPU clusters break, and what each one looks like from the outside. My bet is that document gets written slowly, one expensive run at a time, and the teams that keep their own version will lose less.

Written with AI assistance, reviewed and edited by Do Minh Tuan.