🖥️ AI InfrastructureID:
cluster-schedulingCluster Scheduling Ray/K8s
集群调度 Ray/K8s
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Cluster Scheduling Ray/K8s.
Use Cases
In production engineering, what are the primary use cases for Cluster Scheduling Ray/K8s and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Describe the K8s scheduler's two phases: the hard constraints checked in filtering (resources, NodeSelector, affinity, taints/tolerations, ports/volumes), the scoring policies (least-requested vs most-requested) and their trade-offs, and why filtering must come first.
2
Why GPU is an extended resource allocated in whole cards (memory and SMs cannot be safely partitioned), how the device plugin advertises ; can a 30 GB job fit a card with only 20 GB free, and why.
3
What is MIG: hardware slicing of A100/H100 (up to 7 instances, e.g. ) with dedicated SM and memory partitions per instance; the key difference from vGPU time-slicing (isolation, no jitter), and when to choose it.
4
Sketch the Ray architecture: Driver → Head (GCS global control plane + Raylet) → per-node Raylet (local scheduler + Object Store) → Workers; why the object store gives zero-copy sharing between same-node tasks while only cross-node traffic hits the network.
5
Autoscaling: the Ray Autoscaler adds/removes nodes by pending task counts, K8s via HPA/custom metrics; how in-flight work is handled gracefully on scale-down and spot preemption (drain, replicas, checkpoint-resume).
📖 In-depth Guide:📄 cluster-scheduling-and-ray →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Cluster Scheduling Ray/K8s"
Single choice pitfall questions with instant feedback and mistake tracking.