add soak-churn scale test#608
Draft
oleg-kushniriov wants to merge 1 commit into
Draft
Conversation
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.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a long-running soak / churn benchmark under
operator/e2e/tests/scale/that boots a smallPodCliqueSet(~50 pods) and drives repeated scale-up / scale-down cycles against it over an extended duration. The goal is to surface bugs that single-shot benchmarks cannot see — slowleaks, monotonically growing status fields, gradually drifting counters, finalizer pile-ups — by accumulating many incremental reconciles against the same controller instance.
The test is opt-in only. It's gated by a separate build tag (
//go:build e2e && soak) and is invisible tomake run-e2eandmake run-scale-test. Default runtime is ~30 minutes, too long for routine CI; it runs on demand when investigating a regression or capturing abaseline.
Single test, parameterized by env vars
SOAK_BASESOAK_PEAKSOAK_CYCLESCycle shape (executed N times)
scale-up-cN— patchspec.replicasbase → peak, wait forpeak-pods-ready.hold-peak-cN— 30 s window for watch events to flush.| Cycles | 10 |
SOAK_CYCLES|| Per-cycle hold | 30 s | — |
| Worker nodes | 30 kwok | — |
| Timeout | 60 min | — |
Cycle shape (executed N times)
scale-up-cN— patchspec.replicasbase → peak, wait forpeak-pods-ready.hold-peak-cN— 30 s window for watch events to flush.scale-down-cN— patchspec.replicaspeak → base, wait forbase-pods-restored(live count drops to ≤ base).hold-base-cN— 30 s window.What's in the PR
operator/e2e/tests/scale/soak_test.go—Test_SoakChurn, gated//go:build e2e && soak. Loads env config, drives N cycles, runs final-check as the last timeline phase.operator/e2e/yaml/soak-churn.yaml— PCS at base size (25 replicas × 2 pods/clique = 50 pods).operator/e2e/measurement/condition/pod.go— addsPodsAtCountCondition(fires when live pod count drops to ≤ ExpectedCount). Required for the scale-down leg of each cycle since the existingPodsCreatedConditionis≥-only and would fire immediately.operator/Makefile—make run-soak-testtarget withSOAK_BASE/SOAK_PEAK/SOAK_CYCLES/DIAG_DIRenv-var forwarding.operator/e2e/tests/scale/soak_churn.md— design doc with motivation, decisions, and the placement reasoning for the final-check phase.How to run
Results land in
<DIAG_DIR>/SoakChurn/<runID>/scale-test-results.jsonwith per-phase timings — diff withjqacross revisions, diff pprof bundles (when Pyroscope is on) withgo tool pprof -base A.pb.gz B.pb.gz. No comparison logic in the test itself — keeps it deterministic, nobaselines committed to the repo.
Which issue(s) this PR fixes:
Fixes #607