Stage 12, Part 3 of 9, GPU Orchestration & Multi-Tenancy
Text
PART 3: PRODUCTION FAILURE MODES
14. Top 10 GPU Orchestration Failures
| # | Failure | Symptom | Root Cause | Fix |
| 1 | GPU not detected | Pod Pending, no GPU resource | Driver issue | Check GPU Operator logs |
| 2 | MIG configuration failed | GPU reset error | Active processes on GPU | Stop all GPU workloads |
| 3 | Time-slicing not working | Only 1 pod per GPU | ConfigMap not applied | Update GPU Operator |
| 4 | GPU OOM | CUDA out of memory | VRAM exceeded | Reduce batch size, use MIG |
| 5 | GPU XID errors | Workload crashes | Hardware/driver fault | Check DCGM metrics |
| 6 | Noisy neighbor | Unpredictable latency | No isolation (time-slicing) | Use MIG |
| 7 | GPU quota exceeded | Pod Pending | ResourceQuota limit | Increase quota |
| 8 | Cost anomaly | Unexpected bill spike | Idle GPUs running | Monitor utilization |
| 9 | MIG profile mismatch | Pod can't schedule | Wrong MIG profile requested | Check node MIG config |
| 10 | NVLink topology ignored | Slow multi-GPU training | Default scheduler not topology-aware | Use 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?
| Component | Impact | Severity |
| GPU Operator down | New GPUs not detected | SEV-1 |
| Device plugin down | GPU pods can't schedule | SEV-1 |
| MIG misconfiguration | GPU reset required, workloads killed | SEV-1 |
| GPU hardware failure | Node unavailable | SEV-1 |
| Time-slicing without isolation | Noisy neighbor | SEV-2 |
| GPU quota exceeded | Pods Pending | SEV-3 |
| Cost anomaly | Budget overrun | SEV-3 |
Mitigation Strategies
| Strategy | Implementation |
| HA GPU Operator | Multiple replicas |
| GPU node pools | Dedicated nodes, taints |
| MIG for isolation | Hardware-level partitions |
| DCGM monitoring | Alerts on GPU health |
| Cost alerts | Budget-based alerts |
1:1 copy of the class Google Doc, code in code blocks.