Stage 12, Part 7 of 9 · p. 107, GPU Orchestration & Multi-Tenancy

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

SeverityImpactResponse TimeEscalation
SEV-1All GPU nodes down / GPU Operator failure5 minOn-call + Platform + ML Team
SEV-2Single GPU node failure / MIG corruption15 minOn-call + Platform
SEV-3GPU performance degradation1 hourOn-call
SEV-4GPU cost anomaly4 hoursTicket

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