Repository navigation
fix(proxy): overload manager back to fixed_heap; default memory limit 512Mi - #139
Merged
Merged
Conversation
…tal in privileged pods Deploying #138 (rev 64) took the entire data plane down for ~13 minutes: every proxy aborted at bootstrap with "No supported cgroup memory implementation found" and crash-looped until the overload manager was disabled via values (rev 65). Root cause: the cgroup_memory monitor reads /sys/fs/cgroup/memory.{current,max}. That works under docker — private cgroup namespace, the container sees its own leaf cgroup, which is where the pre-merge validation passed — but the aether-proxy DaemonSet is a PRIVILEGED pod and gets the HOST cgroup namespace: /sys/fs/cgroup is the host root cgroup, which has no memory.max. Envoy treats the failed probe as a fatal bootstrap error. The outage was cluster-wide rather than canaried because the supervisors watch the bootstrap config (fsnotify) and hot-restarted every node into the poisoned ConfigMap at once, bypassing the DaemonSet rollout safety entirely. A follow-up hardening (supervisor pre-validates new bootstrap config with `envoy --mode validate` on the node before hot-restarting, keeping the old config serving on failure) is planned separately — node- local validation WOULD have caught this, unlike the docker-side check. fixed_heap is tcmalloc-internal (no cgroup access), so its validation is environment-independent. The 768Mi = 75%-of-limit budget and its rationale are restored, and the ConfigMap now documents exactly why cgroup_memory must not be reintroduced while the proxy is privileged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Steady-state proxy RSS measured 67-148Mi post-#136 (e2e 2026-06-11), so 512Mi keeps ~3.5x headroom while halving the node memory reservation (request == limit, Guaranteed) and engaging the overload ladder earlier on a real leak. Heap budget scales with it: 384Mi = 75% of the limit (top rung 0.98x384 ~= 376Mi + non-heap extras stays under the cgroup kill line). Co-Authored-By: Claude Opus 4.8 <[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.
Incident
Deploying #138 (rev 64, ~12:50Z) took the entire data plane down for ~13 minutes: every proxy aborted at bootstrap with
No supported cgroup memory implementation foundand crash-looped. Recovered at rev 65 by disabling the overload manager via values (--set proxy.overload.enabled=false— ConfigMap-only, picked up on the next crash retry).Root cause (config bug)
cgroup_memoryreads/sys/fs/cgroup/memory.{current,max}. Under docker — where the pre-merge validation ran — containers get a private cgroup namespace, so the path is the container's own leaf cgroup and the monitor works. The aether-proxy DaemonSet is a privileged pod, which gets the host cgroup namespace:/sys/fs/cgroupis the host root cgroup, which has nomemory.max. Envoy treats the failed probe as fatal at bootstrap. The docker validation was a false positive about the runtime environment, not the config.Root cause (blast radius — the more important lesson)
The outage was cluster-wide instead of canaried: supervisors watch the bootstrap config (fsnotify) and hot-restarted every node simultaneously into the poisoned ConfigMap, bypassing the DaemonSet rollout safety entirely. Old pods didn't survive to keep serving — their own in-place hot restarts crashed them.
Planned follow-up hardening (separate PR): the supervisor pre-validates a changed bootstrap with
envoy --mode validateon the node before forking the new epoch, and keeps the old config serving (+ logs/metric) on failure. Node-local validation would have caught this — the same probe fails in the same environment — converting a cluster-wide outage into a no-op with alarms.This PR
fixed_heap(tcmalloc-internal — no cgroup access, environment-independent validation); ConfigMap comment documents exactly whycgroup_memorymust not be reintroduced while the proxy is privileged (revisit if the proxy dropsprivilegedor gains a private cgroupns).maxHeapSizeBytes384Mi = 75% of the limit (top rung 0.98×384 ≈ 376Mi + non-heap extras stays under the cgroup kill line).bypass_overload_managerunchanged.configuration OK); chart tests pass.Cluster is currently at rev 65 (#138 chart, overload disabled). Merging this re-enables the overload manager safely on the next deploy.
🤖 Generated with Claude Code