You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
e2e/pressure: abort on heap vs GOMEMLIMIT (RSS ceiling sits below the limiter's real trigger) and narrow the FAIL criterion to #662's signature #699
Two defects in e2e/pressure/run.sh found by running it four times against talos-main (2026-09-05)
1. The RSS abort ceiling sits below the point where the limiter actually engages.memory_limiter triggers on Go heap (otelcol_process_runtime_heap_alloc_bytes ≈ 1,077–1,300MiB at refusal onset in three runs), and RSS at that instant was 1,250–1,650MiB (otelcol_process_memory_rss_bytes), because GC slack lets RSS run ahead of heap by 1.15–1.4×. The harness aborts at 1,500MiB RSS, i.e. inside that band — runs 2 and 3 aborted after shedding had engaged (Prometheus shows refused_metric_points moving 5–20s before the abort) but before the 15s/5s poll observed it. Only with the ceiling raised to 1,850MiB did run 4 observe shedding and proceed. The collector capped its own RSS at ≤1,743MiB in all four runs (limiter working), 0 restarts.
Fix: abort on heap vs GOMEMLIMIT (e.g. heap > 95% of GOMEMLIMIT, read from the pod env) rather than RSS vs a hard-coded number, and read the refused counters from the collector's own :8888/metrics via port-forward instead of Prometheus (scrape lag was the reason the poll missed the onset). Keep an RSS backstop at ~90% of the pod limit.
2. The FAIL criterion is broader than #662. Run 4's agent came Ready in 16s with 0 restarts, SPIRE resolved, manager started — the fix held — but the harness printed FAIL because the new agent logged one ERROR line containing context canceled (registrar/registrar.go:463 failed to start watch stream, retrying, a self-recovering client retry). The #662 signature is failed to create SPIRE Workload API source + exit + CrashLoopBackOff / restartCount > 0; assert on those, and report other ERRORs as informational.
Also: document the observed numbers (heap trigger ~1,126MiB ≈ RSS 1,250–1,650MiB; limiter caps RSS ~1,750MiB on a 2Gi pod) in the README so nobody re-derives them, and note that the SLI's rate() under-reads during shedding (liveness read 12–18/s vs 25/s — export lag, not request loss; counters self-heal).
Validation run of #714's harness on talos-main, 2026-09-05 20:48–20:51Z, node main-worker-03, agent on rev198 (pre-#712 so the #700 line still appears — correctly reported as informational now):
default manifest (2 pods × rate 2)
INCONCLUSIVE, exit 2: peak heap 174MiB (10% of GOMEMLIMIT), peak RSS 427MiB, 0 refusals in 300s — second time today 2/2 fails to reach pressure
3 pods × rate 3 (--job-manifest)
PASS, exit 0
shedding engaged
46s after apply; heap 1,486MiB (90% of the 1,638MiB GOMEMLIMIT), RSS 1,766MiB
peak heap / RSS
1,497MiB (91% of GOMEMLIMIT — 4% under the new 95% abort ceiling) / 1,766MiB
restart window
refused log_records +748, metric_points +18,256
agent
aether-agent-r85bb → aether-agent-zs9k6, Ready in 16s, restartCount 0, SPIRE source established, 1 informational ERROR (#700, fix in #712)
recovery
shedding stopped 76s after release; aether_agent_storage_pods{node="main-worker-03"} fresh again
Consequence for #714: the 2/2 default is being changed to 3/3 (the only rate that has ever reached pressure, runs 2–5), with the arithmetic and observed numbers corrected (≤1,770MiB peak RSS across five runs, heap peak within 4% of the abort ceiling so no further escalation by default). Also confirmed: the collector has no :8888 pull reader, so the lag-free read path waits on a GitOps change (README carries the snippet).
Activity
bpalermo commentedon Sep 5, 2026
Validation run of #714's harness on talos-main, 2026-09-05 20:48–20:51Z, node main-worker-03, agent on rev198 (pre-#712 so the #700 line still appears — correctly reported as informational now):
--job-manifest)aether-agent-r85bb→aether-agent-zs9k6, Ready in 16s, restartCount 0, SPIRE source established, 1 informational ERROR (#700, fix in #712)aether_agent_storage_pods{node="main-worker-03"}fresh againConsequence for #714: the 2/2 default is being changed to 3/3 (the only rate that has ever reached pressure, runs 2–5), with the arithmetic and observed numbers corrected (≤1,770MiB peak RSS across five runs, heap peak within 4% of the abort ceiling so no further escalation by default). Also confirmed: the collector has no
:8888pull reader, so the lag-free read path waits on a GitOps change (README carries the snippet).fix(e2e): make the 3-pod rate-3 pressure job the default; 2/2 never r…
docs(e2e): five runs (#699)
fix(e2e): abort the pressure harness on heap vs GOMEMLIMIT, narrow th…