Repository navigation
Conversation
Add an rss-idle subcommand that runs a released Proxy image unmodified against TLS-only PostgreSQL with certificate verification, samples smaps_rollup, and reports the fitted growth slope per reload and per day. CIP-5493
Idle RSS of the released image did not reproduce the reported growth, so the rig needs to vary what else is periodic. Add a scraper container for Proxy's Prometheus exporter with growth reported per scrape, a run name so variants can execute side by side, a second-half slope that is not inflated by startup settling, and a reloads-disabled control. Stop setting the Docker working directory to the build machine's workspace path, so a cross-compiled rig binary runs on another host. Emulated amd64 measures the emulator's memory, not Proxy's. CIP-5495
The rig could only measure Proxy with nothing connected, and no idle variant of stock 2.2.5 reproduced the 57-63 MiB/day growth customers report. Reproducing it needs client activity. Add five workloads the rig process drives through a published loopback port: tcp-probe, startup-probe, login-churn, idle-pool and pooled-queries. The report gains a client section and growth per client operation, with a projection at a stated production rate. With these, a pool of idle connections reproduces the growth on stock 2.2.5: Proxy closes each idle connection at connection_timeout, the pool reconnects, and the old connection is never released (CIP-5495). Document how to measure a patched binary against a release by swapping only the binary in the released image.
tobyhede
force-pushed
the
toby/cip-5493-rss-soak-rig-measures-the-stock-proxy-225
branch
from
November 23, 2026 02:41
4407f3f to
d29d839
Compare
This branch has not been deployed
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.
Summary
Adds an
rss-idlesubcommand to the burn-in package for CIP-5493.It measures how fast the RSS of a released Proxy image grows with zero client connections, without building or changing Proxy.
Evidence
soakalways builds Proxy from the current source and samplesVmRSSonly.After: a two-hour run of
cipherstash/proxy@sha256:e777722f23e1421eeb10cc513ec0871e1407ae8c0b73aaf81ab3d5a18ba333a1(cipherstash-proxy 2.2.5, linux/arm64):Idle is flat, so it does not reproduce the reported 57–63 MiB/day.
The 16.2 MiB/day on the 60s run is startup settling in the first 50 minutes; the default 120s warm-up is too short for that cadence.
The full reading is on CIP-5493.
invalid peer certificate: UnknownIssuer.cargo test -p cipherstash-proxy-burn-in: 17 passed.cargo clippy -p cipherstash-proxy-burn-in --all-targets -- -D warningsandcargo fmt --all -- --check: clean.Merge Danger
Door: two-way
Test tooling only.
No Proxy source changes and nothing runs in CI yet; the CI slope gate is CIP-5499.
Blast Radius: burn-in
write_report_atomic,preflight_outputandworkspace_rootinsoak.rsbecamepub(crate), with no behaviour change to the existing soak.