Repository navigation
fix(chart): roll the edge without a surge pod when there is more than one replica (#812) - #849
Merged
Merged
Conversation
… 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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: 0is 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.rollingUpdateoverrides both branches for a cluster with spare headroom that would rather surge.Verification
Rendered on all three paths:
replicaCount: 2(default)replicaCount: 1edge.rollingUpdateset explicitlyChart
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 plainifchain.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-loaderPriorityClass in #811.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr