26/34
Part 5 of 5 · Spot, failures and metricsLearn and do
Check nodes, classify failures, then retry
Jobs fail on a big cluster every day. What the scheduler does next depends on why.
| A job fails, and the failure is | Then |
|---|---|
| platform: a bad GPU, a lost node | retry from the last checkpoint on new nodes, and list the bad hardware |
| application: a bug in the job | send it back to the owner: a retry would fail the same way |
At this scale, hardware fails during normal operation. Llama 3's paper puts about 78% of the unexpected interruptions down to confirmed or suspected hardware problems.
Netflix's GPU post describes the layers its platform uses, and they make a good checklist:
- Check nodes before they take work. A new node isn't trusted until it passes GPU diagnostics. Its startup taint comes off only after the health checks have run twice. Before a job starts, the hardware it was given is checked with a short collective communication run and pairwise network tests.
- Fail closed. If a health check can't reach the GPU driver, the node is marked unhealthy, not passed.
- Retry the platform's failures, not the job's. Retrying every failure would hide real bugs in a job and burn GPU-hours looping on an error the platform can't fix. So Netflix classifies each failure as platform or application before it retries.
In the editor, write ready(checks) and on_failure(cause). checks holds the results of a node's health checks, and PLATFORM lists the failure causes the platform owns.