﻿# Kueue DQO clears stale capacity when a flavor exceeds 64 resources

The 64-resource boundary is per aggregated flavor: Kueue now invalidates stale effective capacity when providers collectively exceed it.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-ops-kueue-dqo-resource-aggregation-limit/
Language: en

Kueue 0.20.6 makes an aggregation limit visible instead of leaving an old successful capacity result behind. Multiple CapacityProviders can collectively report more than 64 distinct resources for one flavor, even if each provider looks reasonable alone. The patch sets EffectiveCapacityComputed=False with AggregationFailed and clears effectiveCapacity. The operational question is therefore whether a capacity figure represents the current inputs or merely the last update the API accepted.

## Validate the aggregate, not only providers

PR 17698 distinguishes the existing flavor-count check from the missing resource-count check. Two providers can push one flavor past its status schema limit. Validation of individual provider responses cannot establish validity of their union. An operational inventory should preserve resource identity and flavor membership across providers, then count distinct aggregated resources. Summing raw entry counts would also be misleading if providers report overlapping resource names, because the documented boundary concerns distinct resources.

## Rejected writes can preserve an old success

Before the fix, the status update could be rejected while the orchestrator continued showing capacity as computed. That is more subtle than a missing number: consumers may trust a populated field together with a success condition. The replacement behavior explicitly clears the value and marks computation false. Monitoring that only alerts on empty capacity should therefore be paired with condition inspection, since the reason explains whether absence reflects failed aggregation rather than a legitimate zero-capacity result.

## The transition is the useful regression

The PR reports unit coverage for 64 accepted resources and 65 rejected resources, plus an integration transition from 64 to 65 after a provider update. That transition specifically exercises the stale-status failure. A proposed deployment qualification should similarly start with a valid computed result and then change provider inputs. Testing only a permanently oversized initial configuration would check rejection but could miss whether an earlier successful value and condition are actually invalidated.

## Recovery should replace the invalidated result

A follow-up exercise can reduce the aggregate to an acceptable resource set and observe a fresh computation. The intended evidence is a new result corresponding to those inputs, not restoration of a cached pre-failure value. Nothing in this patch raises the schema limit or combines arbitrary resource catalogs into one flavor. CapacityProvider design still needs to respect the published boundary; the release improves truthful failure reporting when that design constraint is violated.

## Sources

- [kubernetes-sigs/kueue v0.20.6 release notes](https://github.com/kubernetes-sigs/kueue/releases/tag/v0.20.6)
- [Fail DQO discovery when a flavor's aggregated resources exceed the effective capacity limit by 7xuanlu](https://github.com/kubernetes-sigs/kueue/pull/17698)

## Related reading

- [Google Cloud GPU capacity errors despite available quota](/journal/google-cloud-gpu-zone-resource-pool-exhausted/)
- [Prometheus query warnings: successful status can accompany incomplete results](/journal/field-observe-query-api-warnings-coverage/)
