Repository navigation
feat(chart): agent.updateStrategy.surge rolls the node agent with a standby (proposal 041) - #1157
Merged
Merged
Conversation
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 17:57
6d28f2c to
f03ceea
Compare
bpalermo
force-pushed
the
feat/041-agent-surge-chart
branch
from
October 3, 2026 17:57
b8b869d to
b0ba2e5
Compare
bpalermo
force-pushed
the
feat/041-agent-surge-chart
branch
from
October 3, 2026 18:18
b0ba2e5 to
89e4f0c
Compare
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 18:18
f03ceea to
3abc095
Compare
Owner
Author
|
Review fix pushed (89e4f0c): removed the 'safe in the same upgrade that first ships it' claim from values.yaml and the runbook. Rollout is now two steps: upgrade to 2.3.0 with 🤖 Generated with Claude Code |
bpalermo
force-pushed
the
feat/041-agent-ready
branch
from
October 3, 2026 18:54
3abc095 to
ca13a5e
Compare
…tandby (proposal 041) - agent.updateStrategy.surge (default false): true renders maxSurge 1 / maxUnavailable 0, false the explicit delete-then-create (maxSurge 0 / maxUnavailable 1) the DaemonSet already rolled with. - The agent pod declares no ports: on a hostNetwork pod containerPort 8080 and 8082 default to hostPorts, and the scheduler's NodePorts filter would keep a surge pod Pending beside the old one. They were informational; metrics bind once the agent owns the node. - Liveness and readiness are exec probes through /agent-ready over the pod-local --health-socket (/tmp emptyDir), --health-probe-bind-address=0. Same periods and thresholds as before (readiness 2 s x 15). - The /run/aether hostPath already carries the node lock; documented at the mount. system-node-critical stays. - helm tests: both strategy values, the probes, the lock mount, and the absence of any containerPort. - Chart 2.3.0. Docs: runbook "Agent surge roll (proposal 041)" (turning it on, what the overlap looks like, a standby that never takes over), the headroom pre-flight, configuration.md (value, flags, agent-ready). Refs #1123 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…that ships it (proposal 041 review) values.yaml and the runbook claimed surge was safe to enable in the same upgrade that first ships chart 2.3.0. It is not: in that upgrade - an older registrar ignores the watch `instance` key, so the owner's and the standby's watch streams replace each other (DataLoss, full resync) for the whole overlap; - a lock-less old agent that restarts between the standby's socket probes can rebind xds.sock/cni.sock and unlink them by name on pod delete, leaving the node with no sockets; - its deferred observed-upstreams flush can land after the takeover. Now: upgrade to 2.3.0 with surge=false, then set surge=true, with the reasons in the runbook. Also documents that a standby whose registry gate only timed out stays NotReady, and unifies the runbook's `kubectl -n aether` to the `aether-system` it uses everywhere else. Refs #1123 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
feat/041-agent-surge-chart
branch
from
October 3, 2026 20:27
89e4f0c to
267eacd
Compare
bpalermo
marked this pull request as ready for review
October 3, 2026 20:27
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.
Refs #1123. Part 3 of 4 of proposal 041. Stack: #1155 ← #1156 ← this PR ← e2e gate. Base:
feat/041-agent-ready.What
agent.updateStrategy.surge(defaultfalse).truerendersmaxSurge: 1, maxUnavailable: 0.falserenders the explicitmaxSurge: 0, maxUnavailable: 1, which is what the DaemonSet already rolled with.The following apply in both modes, so flipping the value later changes only the strategy.
No
ports:on the agent pod.containerPort8080/8082 default to hostPorts, and the NodePorts filter would keep a surge pod Pending forever.:8080) bind once the agent owns its node (feat(agent): node-ownership lock and standby mode for a surge roll of the agent (proposal 041) #1155), and health moved to the pod-local socket.Exec probes:
/agent-ready --path=/healthz|/readyzover--health-socket=/tmp/aether-agent-health.sock, with--health-probe-bind-address=0. Periods and thresholds are unchanged: readiness 2 s × 15, liveness 10 s.Lock and priority.
/run/aetherhostPath the agent already mounts. The mount is now documented as such.system-node-criticalstays.Capacity. Requests are unchanged: 200m / 64Mi, no CPU limit (#1116).
system-node-criticalpreempts if it has to. Otherwise the surge pod stays Pending and the roll stalls on that node, visibly.Chart 2.3.0.
Docs.
kubectl delete pod./agent-ready.--node-lock,--health-socket,--health-probe-bind-address, andagent-ready.Tests
aether_agent_update_strategy_default_testandaether_agent_update_strategy_surge_testcover both values. The surge one also pins the socket flags, the exec liveness probe, the/run/aethermount andsystem-node-critical.aether_agent_no_host_ports_testasserts nocontainerPort: 8080/8082and noport: healthin the agent DaemonSet, with a control.aether_agent_restart_fast_path_testnow pins the exec readiness probe.//charts/aether/...52/52.//agent/internal/cmd(chart flags exist on the binary) passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr