TECHNOLOGY

Understand unschedulable replicas with topology minDomains

In this article
THE QUICK TAKE

Compute eligible domains and the minDomains baseline before treating a topology-blocked Pod as a hardware shortage.

A serving replica stays Pending even though the remaining zones have free GPU nodes. The topology rule requires more eligible domains than are currently available. minDomains changes the global minimum used in the skew calculation, so free hardware alone cannot explain whether another placement is permitted.

Count eligible domains first

Identify the topology key and the unique values on eligible nodes. Eligibility depends on the configured inclusion rules for affinity and taints, not simply every zone named in inventory. A missing node label can remove a candidate from the intended domain accounting. Save the incoming Pod’s constraints and node labels together.

Apply the global-minimum rule

With a hard DoNotSchedule constraint, fewer eligible domains than minDomains cause the calculation to use a global minimum of zero. Compare the candidate domain’s matching Pod count after placement with that baseline and maxSkew. Balanced counts across the surviving zones can therefore still forbid another replica. The constraint is protecting the declared distribution rule rather than measuring free accelerator capacity.

Separate matching Pods from all Pods

The label selector determines which existing Pods enter the count. Neighboring workloads do not necessarily participate, and a mistaken selector can count the wrong model fleet. Verify the selector against real Pod labels before changing minDomains. Otherwise a distribution repair can merely hide an incorrect workload boundary.

Choose the failure-domain tradeoff

Restoring an eligible domain and relaxing a hard constraint are different operational decisions. One preserves the intended distribution; the other changes availability placement during degraded capacity. Document the service’s rule for that situation. Do not lower the field automatically whenever scheduling fails without identifying which failure-domain protection is being relaxed.

Verify the specific candidate

In a small synthetic scheduling fixture, compare enough eligible domains with fewer than the configured minimum. Calculate the expected result and match it to scheduler evidence. Then restore the missing label or eligibility condition and repeat. Acceptance means the observed Pending state follows the declared rule. It does not establish that the eventual placement has enough serving throughput or that topology labels correspond to physically independent failure paths.

Primary references

Pod Topology Spread Constraints.

Labels and Selectors.

Resource Management for Pods and Containers.

Related reading: GPUs in Kubernetes: scheduling CPU, RAM and accelerators together; A GPU topology matrix: device proximity and actual measurements.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles