Skip to content

fix(chart): roll the edge without a surge pod when there is more than one replica (#812) - #849

Merged
bpalermo merged 1 commit into
mainfrom
fix/812-edge-rollout-strategy
Sep 20, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/812-edge-rollout-strategy

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Addresses item 1 of #812.

The problem

A surging edge roll needs room for an extra 400m pod. On rev214 that pod was preempted by the proxy DaemonSet on a node at 84 % CPU requests and wedged the roll outright; later rolls escaped it only because the surge pod happened to land elsewhere.

That is a rollout whose success depends on cluster headroom at the moment it runs. A release process should not have that property, and "it worked last time" was luck rather than design.

The change

With ≥ 2 replicas, the default becomes maxSurge: 0, maxUnavailable: 1. This removes the scheduler from the rollout path entirely — no new pod has to be placed for the roll to proceed. The soft hostname spread already on this Deployment keeps replicas apart, so at least one is serving behind the LB throughout.

A briefly degraded ingress beats a stuck one, and a stuck roll is what we actually observed.

With exactly 1 replica the old maxSurge: 1, maxUnavailable: 0 is kept, because a single replica cannot roll without either a surge or an outage window, and surging is the better of the two. That is the kind/e2e shape rather than a production one — and a flat change would have turned every single-replica roll into a full ingress gap, which is why this is conditional rather than a one-line edit.

edge.rollingUpdate overrides both branches for a cluster with spare headroom that would rather surge.

Verification

Rendered on all three paths:

values maxSurge maxUnavailable
replicaCount: 2 (default) 0 1
replicaCount: 1 1 0
edge.rollingUpdate set explicitly honoured verbatim

Chart 0.92.30 → 0.92.31.

Note for reviewers: {{- with X }} … {{- else if }} does not parse in Helm ("unexpected <if> in input"), so this uses a plain if chain.

Not addressed here

Item 2 of #812 (a deploy pre-flight that checks node requests and names the tenant workloads) is a runbook change, not a chart one, and is left open. Item 3 was already mitigated by the aether-soak-loader PriorityClass in #811.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

… one replica (#812)

A surging edge roll needs room for an extra 400m pod. On rev214 that pod was
preempted by the proxy DaemonSet on a node at 84% CPU requests and wedged the
roll outright; later rolls escaped it only because the surge pod happened to
land on a different node. That is a rollout whose success depends on cluster
headroom at the moment it runs, which is not a property a release process
should have.

With >= 2 replicas the default becomes maxSurge 0 / maxUnavailable 1. That
removes the scheduler from the rollout path entirely: no new pod has to be
placed for the roll to proceed. The soft hostname spread already on this
Deployment keeps the replicas apart, so at least one is serving behind the LB
throughout. A briefly degraded ingress beats a stuck one — and a stuck roll is
what we actually observed.

With exactly 1 replica the old behaviour is kept, because a single replica
cannot roll without either a surge or an outage window, and surging is the
better of those two. That is the kind/e2e shape rather than a production one.

`edge.rollingUpdate` overrides both branches for a cluster with spare headroom
that would rather surge.

Chart 0.92.30 -> 0.92.31. Rendered and checked on all three paths:
replicaCount 2 -> 0/1, replicaCount 1 -> 1/0, explicit override honoured.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 7f21cb1 into main Sep 20, 2026
20 checks passed
@bpalermo
bpalermo deleted the fix/812-edge-rollout-strategy branch September 20, 2026 11:56
bpalermo added a commit that referenced this pull request Sep 20, 2026
The proxy-release automation computed 0.92.31 for this pin, but #849 landed
that same version concurrently, so the Chart.yaml hunk became a no-op and git
dropped it. That left a charts/ change carrying no version bump, which
chart-version-bump correctly rejected.

Two chart changes racing to the same patch version is the failure mode here;
the pin's value was right when it was computed and stale by the time it merged.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Sep 20, 2026
…1beb477792910b2278 (#851)

* chore(proxy): pin aether chart to aether-proxy:3326f3fcdac8120b67be441beb477792910b2278

Pushed by the proxy-release run for 3326f3f. Moves both tag: and digest: (aether.image prefers digest over tag) and bumps the chart patch version.

* chore(chart): bump to 0.92.32 — the pin's own bump collided with #849

The proxy-release automation computed 0.92.31 for this pin, but #849 landed
that same version concurrently, so the Chart.yaml hunk became a no-op and git
dropped it. That left a charts/ change carrying no version bump, which
chart-version-bump correctly rejected.

Two chart changes racing to the same patch version is the failure mode here;
the pin's value was right when it was computed and stale by the time it merged.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <[email protected]>
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.

1 participant