Repository navigation
fix(chart): pin the edge Envoy's worker count; give install-supervisor a request and no CPU limit (#1344) - #1354
Merged
bpalermo merged 2 commits intoOct 7, 2026
Conversation
…r a request (#1344) The edge `envoy` container was started without --concurrency, so it ran one worker per node core. New value edge.concurrency (default 2, 0 omits the flag), the same shape and validation as proxy.concurrency, rendered straight onto the container's command: the edge runs Envoy directly, with no supervisor. The proxy pod's install-supervisor init container rendered no resources at all. New value proxy.supervisor.resources (requests 100m / 32Mi, limits memory 64Mi, no CPU limit), rendered through the aether.resources helper. Chart 2.4.13. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Oct 7, 2026
There was a problem hiding this comment.
🟡 Changes recommended
Boolean concurrency values bypass the documented integer validation, and the runbook contains an inaccurate capacity comparison.
2 open findings
What changed in this PR
Pins edge Envoy worker concurrency and adds resource controls for the proxy supervisor init container.
Changes:
- Adds configurable
edge.concurrency, defaulting to 2. - Adds requests and a memory limit for
install-supervisor. - Updates chart tests, documentation, and version to 2.4.13.
| File | Description |
|---|---|
charts/aether/Chart.yaml |
Bumps chart version. |
charts/aether/values.yaml |
Adds concurrency and supervisor resource defaults. |
charts/aether/templates/_helpers.tpl |
Shares concurrency validation. |
charts/aether/templates/edge-deployment.yaml |
Passes edge concurrency to Envoy. |
charts/aether/templates/agent-proxy-daemonset.yaml |
Renders supervisor resources. |
charts/aether/BUILD.bazel |
Adds Helm rendering tests. |
docs/configuration.md |
Documents new values. |
docs/runbook.md |
Adds operational guidance. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
… correct the runbook's headroom figure Review on #1354. 'default 0' read false and the empty string as unset, so a mistyped edge.concurrency or proxy.concurrency silently became one worker per core. Only null reads as 0 now. Two render-failure tests, seen failing without the helper change. 2 cores against 12m is about 167x, not 1,000x. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
deleted the
fix/1344-edge-concurrency-install-supervisor-resources
branch
October 7, 2026 20:34
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.


Closes #1344. Written by an agent (Claude Code). Chart only, no Go change. Chart
aether2.4.12 → 2.4.13.What changes
1. The edge Envoy gets a fixed worker count. New value
edge.concurrency, default2, the same shape and validation asproxy.concurrency:N > 0passes--concurrency N,0passes no flag (one worker per node core, what every earlier chart did), a negative or non-integer value fails the render. The edge runs Envoy directly as the container'scommand(no hot-restart supervisor), so the flag is two plain entries on that command line; there is only ever one epoch.2.
install-supervisorgets resources. New valueproxy.supervisor.resources, rendered through theaether.resourceshelper: requests100mCPU /32Mimemory, limit64Mimemory, no CPU limit.Containers changed: the edge Deployment's
envoycontainer (command) and the proxy DaemonSet'sinstall-supervisorinit container (resources). Nothing else. I looked for a sibling: the edge pod has no init container, andinstall-supervisorwas the only container in a default or edge-enabled render without aresourcesblock (cni-install,authz,uds-csi, the webhook-injectedidentity-readyall had one already).Rendered, before → after
Default values (
helm template, main's chart vs this branch, generated webhook certificates aside) — the only difference:volumeMounts: - name: supervisor-bin mountPath: /opt/aether + resources: + limits: + memory: 64Mi + requests: + cpu: 100m + memory: 32Mi containers: - name: proxyTalos-like values (
edge.enabled=true,proxy.concurrency=2, 2 edge replicas) — the same hunk, plus:- "aether-edge" - "--service-node" - "$(POD_NAME)" + - "--concurrency" + - "2" env:With
edge.concurrency=0the edge Deployment renders byte-identical to main's. The node proxy's--envoy-arg=--concurrency/--envoy-arg=2lines are unchanged.Why these numbers
edge.concurrency: 2— the count the node proxies run with on talos-main since proxy: a multi-second node-local stall at the parent's 'closing and draining listeners' during some hot-restart handoffs (1 liveness timeout in the 2026-10-01 soak, not #1085) #1093 (decided in the issue thread's brief). Measured today on talos-main, read-only: both edge replicas reportenvoy_server_concurrency = 4(4-core nodes) and theenvoycontainer used 14m of CPU each over the last hour.100m/32Mirequest —cni-install's request, the other init container in this chart that does one short burst on every pod start. An init container's request only counts toward the pod's effective request where it exceeds the app containers' sum (the proxy's500m/512Mi), so it reserves nothing extra on a node; it is the container's CFS weight while it runs, and it now shows up in request accounting.cni-install's 50–80 ms of work to 500–800 ms (chart: cni-install init container has a 100m CPU limit — it runs on every agent pod start #1335).64Mimemory limit — a backstop at about 4× the measured peak. Measured on a workstation fastbuild of//agent/cmd/proxy-supervisor(16.4 MB),--install-pathonto ext4, five runs: max RSS 14.1–14.6 MB, 0.05–0.06 s wall, ~0.04–0.05 s CPU; it also completed in a memory cgroup capped at 32M, 16M and 8M (systemd-run --scope -p MemoryMax=…).GOMAXPROCSpin oninstall-supervisor: single-threaded copy, exits within the second (same call ascni-install).Tests, red first
Added to
charts/aether/BUILD.bazeland run against the unchanged chart before any template edit:Executed 89 out of 89 tests: 82 tests pass and 7 fail locally.aether_edge_concurrency_test(default →--concurrency 2)The file aether/templates/edge-deployment.yaml does not contain the pattern: - "--service-node"\n\s+- "\$\(POD_NAME\)"\n\s+- "--concurrency"\n\s+- "2"\n\s+env:\naether_edge_concurrency_override_test(=4)aether_edge_concurrency_invalid_test(=-1)FAIL: expected 'helm template' to be rejected, but it rendered successfully.aether_install_supervisor_resources_testThe file aether/templates/agent-proxy-daemonset.yaml does not contain the pattern: - name: supervisor-bin\n\s+mountPath: /opt/aether\n\s+resources:\n\s+limits:\n\s+memory: 64Mi…aether_install_supervisor_empty_cpu_limit_test(limits.cpu=renders no limit)aether_install_supervisor_resources_override_testaether_install_supervisor_resources_with_authz_testaether_edge_concurrency_off_test(=0→ no flag)aether_edge_concurrency_leaves_proxy_alone_test(guard)Note on the authz test: its first red was for the wrong reason (I had left out
proxy.authzSidecar.opa.policy, so the render itself failed). After fixing the options I put main'sagent-proxy-daemonset.yamlback and ran it again: red withdoes not contain the pattern, then green with the change.After the change:
bazel test //charts/...→98 tests pass.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...andmake format-checkare clean.On upgrade
proxy.concurrency's caveats (supervisor: a hot restart across a worker-count change still resets about half of the live QUIC connections — drain and start fresh instead when --concurrency differs #1136) apply. An edge that needs more setsedge.concurrency;0restores the old behaviour exactly.--concurrencyis Envoy's own flag, so chart/image skew is not a concern.Measure after a deploy (also in
docs/runbook.md, "Edge Envoy worker count"):kubectl get ds -n aether-system aether-proxy \ -o jsonpath='{.spec.template.spec.initContainers[0].resources}{"\n"}'Measured vs inferred, and not verified
--concurrency 2on kind or talos-main, andinstall-supervisorwas not run under the64Milimit in a real pod (containerd, the pod's emptyDir).🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr