PART 7: INCIDENT MANAGEMENT
31. AI Workload Incident Post-Mortem Template
text
INCIDENT: Distributed Training Deadlock - 16 GPUs Wasted
DATE: 2026-01-15
DURATION: 4 hours
SEVERITY: SEV-1
IMPACT: 16 GPUs held by blocked workers. No training progress.
TIMELINE:
14:00 - Job submitted: 16 workers, each needing 1 GPU
14:01 - 4 workers scheduled, 12 Pending
14:05 - 4 running workers hold 4 GPUs
14:10 - Deadlock detected (12 workers can't schedule)
14:15 - On-call acknowledged
14:30 - Identified missing gang scheduling
14:45 - Killed job, resubmitted with Volcano
15:00 - All 16 workers scheduled
18:00 - Training completed
ROOT CAUSE:
Job used default scheduler. No gang scheduling configured.
Partial placement held GPUs while waiting for peers.
LESSONS LEARNED:
1. All distributed training requires gang scheduling.
2. Partial placement is worse than no placement.
3. Volcano/KAI should be default for AI workloads.
ACTION ITEMS:
[ ] Enable Volcano for all AI namespaces (Owner: Platform)
[ ] Update job templates to use gang scheduling (Owner: ML Team)
[ ] Add deadlock detection alerts (Owner: SRE)
32. On-Call Runbook: AI Workload Failures
text
SYMPTOM: AI workload not progressing.
STEP 1: Check job status
$ kubectl get pods -l job-name=<job>
STEP 2: Check gang scheduling
$ kubectl get podgroup <name>
$ kubectl describe podgroup <name>
STEP 3: Check GPU availability
$ kubectl describe nodes | grep -A5 nvidia.com/gpu
STEP 4: Check queue status
$ kubectl get queue
STEP 5: Check inference engine
$ kubectl logs <vllm-pod> --tail=100
STEP 6: Check KV-cache
$ curl localhost:8000/metrics | grep prefix_cache
STEP 7: Check autoscaling
$ kubectl get hpa
$ kubectl describe scaledobject
STEP 8: Escalate
33. Escalation Matrix
| Severity | Impact | Response Time | Escalation |
| SEV-1 | All training deadlocked / inference down | 5 min | On-call + Platform + ML Team |
| SEV-2 | Partial GPU waste / slow inference | 15 min | On-call + Platform |
| SEV-3 | Cold start slow / cache miss | 1 hour | On-call |
| SEV-4 | Cost anomaly | 4 hours | Ticket |
1:1 copy of the class Google Doc, code in code blocks.