PART 7: INCIDENT MANAGEMENT
32. GPU Incident Post-Mortem Template
text
INCIDENT: GPU Node Failure - Training Job Lost
DATE: 2024-01-15
DURATION: 4 hours
SEVERITY: SEV-2
IMPACT: Training job lost 12 hours of progress. No checkpoint.
TIMELINE:
14:00 - GPU XID error detected by DCGM
14:05 - GPU node unhealthy
14:10 - Training job killed
14:15 - On-call acknowledged
14:30 - Node drained
14:45 - Replacement node provisioned
15:00 - Training restarted from last checkpoint
18:00 - Training caught up
ROOT CAUSE:
GPU hardware failure (XID 48). Training job had no checkpointing.
LESSONS LEARNED:
1. Checkpointing must be enforced for training jobs.
2. DCGM alerts must fire on XID errors.
3. Spot instances need graceful handling.
ACTION ITEMS:
[ ] Enforce checkpointing (Owner: ML Team)
[ ] Add DCGM XID alerts (Owner: SRE)
[ ] Test GPU failover (Owner: Platform)
33. On-Call Runbook: GPU Failures
text
STEP 1: Check GPU health
$ kubectl get nodes -l nvidia.com/gpu.present=true
$ kubectl describe node <gpu-node> | grep -A5 "nvidia.com/gpu"
STEP 2: Check DCGM metrics
$ kubectl port-forward -n gpu-operator svc/nvidia-dcgm-exporter 9400:9400
curl localhost:9400/metrics | grep -E "XID|TEMP|UTIL"
STEP 3: Check GPU Operator
$ kubectl get pods -n gpu-operator
$ kubectl logs -n gpu-operator -l app=nvidia-device-plugin --tail=100
STEP 4: Check MIG status
$ kubectl exec -it <gpu-pod> -- nvidia-smi -L
STEP 5: If GPU is faulty
# Cordon and drain
$ kubectl cordon <gpu-node>
$ kubectl drain <gpu-node> --ignore-daemonsets --delete-emptydir-data
STEP 6: Escalate
34. Escalation Matrix
| Severity | Impact | Response Time | Escalation |
| SEV-1 | All GPU nodes down / GPU Operator failure | 5 min | On-call + Platform + ML Team |
| SEV-2 | Single GPU node failure / MIG corruption | 15 min | On-call + Platform |
| SEV-3 | GPU performance degradation | 1 hour | On-call |
| SEV-4 | GPU cost anomaly | 4 hours | Ticket |
1:1 copy of the class Google Doc, code in code blocks.