Repository navigation
test(soak): add a no-roll window + demand-set shrink so #682 is visible, and an age-matched proxy RSS sampler for #628 - #687
Merged
Conversation
…le, and an age-matched proxy RSS sampler for #628 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…dow-and-rss-sampler
This was referenced Sep 5, 2026
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.
Two soak-harness changes, both confined to
e2e/soak/. No Go, no chart.1. The soak was structurally blind to #682 for its entire history
The node agent's demand-scoped dependency set holds each observed upstream for 1h,
and rolling
aether-agentrebuilds that set with a fresh TTL. The old churn schedulerolled the agent at T0+90m and again at T0+300m (the TRIPLE), so the TTL could never
expire inside a soak. #682 — a TTL expiry that drops the cluster on a node with no
local replica and then stalls ODCDS re-discovery for ~5 minutes — only ever surfaced in
the quiet hours between runs, while every soak reported PASS. Grading the 2026-09-05
run confirmed it quantitatively: all 13
service left dependency setlines across thefive agents were timestamped 09:06:17Z, one second after the k6 DaemonSet was deleted at
teardown. Not one fell inside the graded window.
Two fixes, both opt-out (
SOAK_NO_ROLL_WINDOW=0,SOAK_SHRINK=0), default ON:(the TRIPLE) and after the last roll of any kind. Nothing is rolled: no agent, proxy,
mesh-dns, edge or svc. The last proxy roll is at T0+336, so the 1h TTL expires at
roughly T0+396 — under load, inside the graded window, on the nodes with no local
echoreplica. Logged asno-roll window begin/no-roll window end.churn driver complete:deploy/svc-5is scaled to 0 for 90s and restored towhatever replica count was read first (never hard-coded; an EXIT/INT/TERM trap
restores it even if the driver is killed mid-shrink). This is the cheap trigger the
demand-scoped TTL expires under continuous load and ODCDS re-discovery stalls ~5 min: 5-minute per-node outages on nodes with no local replica, invisible to soaks #682 grade comment found — any demand-set shrink, not the 1h TTL specifically,
reproduces the ODCDS stall in seconds. Logged as
SHRINK begin/SHRINK done.svc-5is the target on purpose: it is the one service the k6 script declares as anupstream but never actually drives, so bouncing it cannot pollute the k6 error rate or
the prober SLI.
The roll count and the roll composition are unchanged — the other rolls were re-spaced
from a 15-minute to a 12-minute cadence to buy the window without extending the run.
Churn now ends at ~T0+7h32m; k6 still runs 7h40m, so both new steps land under load.
The new schedule
svc-5→ 0 for 90s, then restoredchurn driver complete* = 30 minutes later an age-matched proxy RSS sample is taken in the background.
2. Age-matched proxy RSS sampler for #628
e2e/soak/sample-proxy-rss.shprints one row peraether-proxypod fromkubectl top pods -n aether-system --containersjoined with the pod'sstartTime:Rows are appended to
/tmp/soak-proxy-rss.tsv(header written once) and echoed tostdout.
--at-age SECONDSpolls every 15s (max 20 min) until the youngest proxy podreaches that age and then samples once, so every checkpoint reads the same generation
age. It filters on the
proxycontainer (the pod also runsauthz), skips pods with nostartTime, and normalises Ki/Mi/Gi to whole Mi.Usage:
Run it at T0+30m;
churn.shqueues the rest itself — 28 minutes after each proxy roll itbackgrounds
sample-proxy-rss.sh --at-age 1800, which polls the last couple of minutesuntil the youngest pod is exactly 30 minutes old. Six samples per run (the five scheduled
proxy rolls plus the TRIPLE's, since the TRIPLE-fresh incarnation is #628's worst
observed data point). The samplers are detached and can never delay the schedule; the
TRIPLE now waits on its three roll PIDs specifically rather than a bare
wait, so aparked sampler cannot hold up the
CONCURRENT triple donelog.Why this matters: #628 has never had two age-matched samples. Churn recycles the proxy
every ~30-90 minutes, so a "higher" node is usually just an older incarnation, and
ramp-then-plateau (born-hot) cannot be told from a leak without holding age fixed.
Also
README.md: the schedule table, both new steps with their env opt-outs, the samplerusage, a note that scaling
svc-5for 90s falls under the same standing authorizationas rolling these shared
talos-mainworkloads, and a new gotcha Minor log refactor #8 on the blind spotitself.
working, not a regression — attribute via the agent log line
service left dependency set.grep -c ROLLEDhas always printed 31. The set of rolls is unchanged, only the tallyand the README's
# expectare now honest.Testing
shellcheck(0.11.0, via@aspect_rules_lint) clean on both scripts;bazel run //:format(shfmt) clean. There is no BUILD target undere2e/soak/, so the lintaspect does not cover these files — shellcheck was run directly.
kubectl: header written once, Ki→Mi conversion,<no value>startTime skipped,--at-agedeadline warns and samples anyway.T0shifted back 450 minutes and a stubkubectl: 31ROLLEDlines in the right order, six RSS samplers fired, window logged, shrink read.spec.replicasdynamically and restored it — including onSIGTERMmid-shrink.Refs #682 #628
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr