NCA-AIIO practice question 19 of 25

Your team is running an AI inference workload on a Kubernetes cluster with multiple NVIDIA GPUs. You observe that some nodes with GPUs are underutilized, while others are overloaded, leading to inconsistent inference performance across the cluster. Which strategy would most effectively balance the GPU workload across the Kubernetes cluster?

Full set: 197 questions
Answer options
A: Deploying a GPU-aware scheduler in Kubernetes Correct answer
B: Implementing GPU resource quotas to limit GPU usage per pod
C: Using CPU-based autoscaling to balance the workload
D: Reducing the number of GPU nodes in the cluster
Correct Answer:
A. Deploying a GPU-aware scheduler in Kubernetes
Explanation

The default Kubernetes scheduler treats GPUs as an opaque integer resource. It can assign a pod to a node that has a free GPU, but it lacks visibility into the actual utilization or load on that GPU. This can lead to the described scenario where some nodes' GPUs are heavily loaded while others are idle. A GPU-aware scheduler extends the default behavior by incorporating real-time GPU metrics, such as utilization and memory usage, into its decision-making process. By evaluating the actual load on GPUs across the cluster, it can intelligently place new pods on the least-utilized nodes, thereby achieving effective workload balancing and consistent performance.

Why Incorrect

B. Implementing GPU resource quotas only limits the total number of GPUs a namespace can use; it does not influence how pods are distributed across nodes to balance the load.
C. CPU utilization is not a reliable metric for GPU load in AI inference workloads, as a task can saturate a GPU while using minimal CPU, making this an ineffective balancing strategy.
D. Reducing the number of GPU nodes is a capacity adjustment, not a load-balancing strategy. It could exacerbate the problem by concentrating the workload and increasing overload on fewer nodes.

References

1. Official Vendor Documentation (Kubernetes): The official Kubernetes documentation explains that the scheduler allocates GPUs as a resource type without insight into their specific state. It notes

"Kubernetes lets you request nvidia.com/gpu resources... the scheduler does not have any knowledge of the specific characteristics of the GPUs." This highlights the need for a more intelligent

aware scheduler to handle load balancing.

Source: Kubernetes Documentation

"Schedule GPUs"

Section: "NVIDIA GPUs". (https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/)

2. Official Vendor Documentation (NVIDIA): NVIDIA's documentation for the GPU Operator describes components like the GPU Feature Discovery (GFD). GFD labels nodes with detailed GPU attributes (e.g.

model

memory). A custom or GPU-aware scheduler can use these labels to make more intelligent placement decisions than the default scheduler

forming the basis for workload balancing.

Source: NVIDIA Cloud Native Technologies Documentation

"GPU Operator"

Section: "GPU Feature Discovery".

3. Academic Publication: Research in distributed systems confirms the limitations of default schedulers for specialized hardware. For instance

academic work on GPU cluster schedulers explicitly addresses the need to move beyond simple resource counting to utilization-aware scheduling to prevent stragglers and improve overall throughput

directly supporting the choice of a GPU-aware scheduler.

Source: Xiao

W.

et al. (2018). "Gandiva: Introspective Cluster Scheduling for Deep Learning". 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18). Section 2.2 discusses the inefficiency of resource-agnostic schedulers.

Scroll to Top