Stage 12, Part 3 of 9 · p. 103, GPU Orchestration & Multi-Tenancy

PART 3: PRODUCTION FAILURE MODES

14. Top 10 GPU Orchestration Failures

#FailureSymptomRoot CauseFix
1GPU not detectedPod Pending, no GPU resourceDriver issueCheck GPU Operator logs
2MIG configuration failedGPU reset errorActive processes on GPUStop all GPU workloads
3Time-slicing not workingOnly 1 pod per GPUConfigMap not appliedUpdate GPU Operator
4GPU OOMCUDA out of memoryVRAM exceededReduce batch size, use MIG
5GPU XID errorsWorkload crashesHardware/driver faultCheck DCGM metrics
6Noisy neighborUnpredictable latencyNo isolation (time-slicing)Use MIG
7GPU quota exceededPod PendingResourceQuota limitIncrease quota
8Cost anomalyUnexpected bill spikeIdle GPUs runningMonitor utilization
9MIG profile mismatchPod can't scheduleWrong MIG profile requestedCheck node MIG config
10NVLink topology ignoredSlow multi-GPU trainingDefault scheduler not topology-awareUse topology-aware scheduler

15. GPU Debugging Runbook

"GPU Pod is Pending" — Step-by-Step

text
STEP 1: Check pod status
  $ kubectl describe pod <pod>
  # Look at Events for scheduling failures

STEP 2: Check GPU availability
  $ kubectl describe node <gpu-node> | grep nvidia.com/gpu
  # How many GPUs are advertised?

STEP 3: Check GPU Operator
  $ kubectl get pods -n gpu-operator
  $ kubectl logs -n gpu-operator -l app=nvidia-device-plugin --tail=50

STEP 4: Check tolerations
  # Does the pod tolerate the GPU node taint?
  $ kubectl get pod <pod> -o jsonpath='{.spec.tolerations}'

STEP 5: Check node selector/affinity
  # Does the pod match GPU node labels?
  $ kubectl get pod <pod> -o jsonpath='{.spec.nodeSelector}'
  $ kubectl get nodes --show-labels | grep gpu

STEP 6: Check quota
  $ kubectl describe resourcequota -n <namespace>

STEP 7: Check MIG (if applicable)
  # Is the requested MIG profile available?
  $ kubectl describe node <gpu-node> | grep nvidia.com/mig

STEP 8: Escalate

"GPU Workload is Slow" — Step-by-Step

text
STEP 1: Check GPU utilization
  $ kubectl port-forward -n gpu-operator svc/nvidia-dcgm-exporter 9400:9400
  curl localhost:9400/metrics | grep DCGM_FI_DEV_GPU_UTIL

STEP 2: Check for noisy neighbors
  # Are multiple pods on the same GPU?
  $ kubectl get pods -A -o json | jq '.items[] | select(.spec.containers[].resources.limits."nvidia.com/gpu" != null)'

STEP 3: Check topology
  # Is the workload using NVLink-connected GPUs?
  $ nvidia-smi topo -m

STEP 4: Check MIG isolation
  # Is the workload on a dedicated MIG instance?
  $ nvidia-smi -L

STEP 5: Escalate

16. Blast Radius Analysis

What Happens When GPU Orchestration Fails?

ComponentImpactSeverity
GPU Operator downNew GPUs not detectedSEV-1
Device plugin downGPU pods can't scheduleSEV-1
MIG misconfigurationGPU reset required, workloads killedSEV-1
GPU hardware failureNode unavailableSEV-1
Time-slicing without isolationNoisy neighborSEV-2
GPU quota exceededPods PendingSEV-3
Cost anomalyBudget overrunSEV-3

Mitigation Strategies

StrategyImplementation
HA GPU OperatorMultiple replicas
GPU node poolsDedicated nodes, taints
MIG for isolationHardware-level partitions
DCGM monitoringAlerts on GPU health
Cost alertsBudget-based alerts

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