Stage 13, Part 7 of 9 · p. 116, AI/ML Workload Orchestration

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

SeverityImpactResponse TimeEscalation
SEV-1All training deadlocked / inference down5 minOn-call + Platform + ML Team
SEV-2Partial GPU waste / slow inference15 minOn-call + Platform
SEV-3Cold start slow / cache miss1 hourOn-call
SEV-4Cost anomaly4 hoursTicket

1:1 copy of the class Google Doc, code in code blocks.