Skip to content

docs(infra): the quota's cpu sum stopped adding up when colours landed - #633

Merged
athvin merged 1 commit into
mainfrom
bm/quota-comment-colour-footprint
Nov 6, 2026
Merged

athvin merged 1 commit into
mainfrom
bm/quota-comment-colour-footprint

Conversation

@athvin

@athvin athvin commented Nov 6, 2026

Copy link
Copy Markdown
Owner

er-dev-namespace/values.yaml justifies limits.cpu: "40" with an arithmetic comment that PR9's colour dimension invalidated without touching the file.

-  limits.cpu   3 × 12 (L) + 2 for the app  = 38  → 40
+  limits.cpu   3 × 12 (L) + 5 at a cutover = 41  → 40 (!)

Measured by rendering the chart with both colours up:

limits.cpu
er-dispatcher 1.0
web-api-blue 1.5 (api 1 + web 0.5)
web-api-green 1.5 — the second colour a cutover runs
one hook 0.5 (weight-ordered, so one at a time)
er-tenant-drift 0.5 if the CronJob fires in the window
peak 5.0

Nothing is broken today and no value changes. The conclusion still holds — at most two concurrent L pods — but because ephemeral storage refuses the third (1200 > 900), not because cpu does. At two L pods it is 24 + 5 = 29 of 40.

The reason to fix it rather than leave it: raising requestsEphemeralStorage to 1200Gi to admit a third L pod, which the comment frames as a cost decision someone may take, would make limits.cpu binding at 41 of 40 — intermittently, only while a deploy overlaps a full queue. The stale 38 actively says there is room. The note now says to raise limitsCpu in the same change.

Found while checking the two constraints the blue/green plan flagged before a first two-colour deploy.

`er-dev-namespace/values.yaml` justifies `limits.cpu: "40"` with an arithmetic
comment, and PR9's colour dimension invalidated it without touching the file:

  -  limits.cpu   3 × 12 (L) + 2 for the app  = 38  → 40
  +  limits.cpu   3 × 12 (L) + 5 at a cutover = 41  → 40 (!)

Measured by rendering the chart with both colours up, not estimated:
dispatcher 1.0, web-api-blue 1.5, web-api-green 1.5, one weight-ordered hook
0.5, and the tenant-drift CronJob 0.5 if it fires in the window.

Nothing is broken today and no value changes here. The comment's CONCLUSION
still holds — this namespace admits at most two concurrent L pods — but for a
different reason than the sum it offers: ephemeral storage refuses the third
(1200 > 900), cpu does not. At two L pods it is 24 + 5 = 29 of 40.

What makes this worth correcting rather than leaving is the trap it sets for
the next reader. Raising `requestsEphemeralStorage` to 1200Gi to admit a third
L pod — which the comment explicitly frames as a cost decision someone may
take — would silently make limits.cpu the binding dimension at 41 of 40, and
only while a deploy overlaps a full queue. An intermittent quota refusal
during a cutover is the worst available way to find that out, and the stale
`38` actively tells you there is room. The note now says to raise limitsCpu in
the same change.
@athvin
athvin merged commit f683112 into main Nov 6, 2026
39 checks passed
@athvin
athvin deleted the bm/quota-comment-colour-footprint branch November 6, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants