docs(perf): Phase 2.11B deployment perf (path B) - #238
Merged
Merged
Conversation
Runs the existing docker-compose b3-delta harness on commit 6b3258d (pre-shim) and HEAD c86a62c (post-shim). Documents whatever throughput / CPU / memory / bandwidth numbers the existing infrastructure produces. Companion to Phase 2.11A (Go bench micro-results, PR #236 merged). Together close ADR-0002 §"Performance contract" with both micro and deployment-level confirmation. Headline results (b3-delta, N=1, c=1000, 10 Hz, mean of 2 samples): agent_cpu_cores 0.0025 → 0.0025 (Δ 0.0%) agent_rss_mib 291.1 → 302.6 (Δ +4.0%) agent_in_kib_per_s 25.74 → 25.74 (Δ 0.0%) agent_out_kib_per_s 3.52 → 3.52 (Δ 0.0%) agent_points_per_s 133.3 → 133.3 (Δ 0.0%) Throughput / IO / CPU within run-to-run noise; RSS +4% explained by the explicit Precompute runtime structure replacing inlined processor state. Within ADR-0002 tolerance. Doc also enumerates 6 gaps in the existing deployment-perf harness (gateway v0.108→v0.141 metric-name skew, ingest-only NaN'd backend columns, no per-Observe latency emission, etc.) with no proposed fixes — separating measurement from action. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7 tasks
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
Phase 2.11B — deployment-level perf audit. Companion to Phase 2.11A
(Go-bench micro-results, PR #236, merged). Together they close
ADR-0002 §"Performance contract" with both micro and deployment-level
confirmation.
This doc reports what the existing docker-compose b3-delta harness
measures end-to-end, comparing commit 6b3258d (pre-shim) vs HEAD
c86a62c (post-shim, origin/main).
Methodology
deploy/docker-compose/baseline-b3-delta.yml+agents-N1.yml.knobs (
EXPORTER_FREQ_HZ=10,EXPORTER_SDK_WINDOW=15s).git worktree,packaged as
asap/sketchcol:dev, recreated only the agent +gateway containers (producer / backend / Prometheus / MinIO stay
continuously up — removes a source of cross-run drift).
fix — that PR introduced
asap-precompute-gowhich is preciselythe dependency the shim added, so 6b3258d's go.mod has no reference
to it. Only env-local fix was a
/tmp/sketchlib-gosymlink forthe OCB-emitted relative path.
Results
Mean over 2 samples each:
Throughput / IO / CPU all within run-to-run noise. RSS moves +4%
which is well within tolerance (sketchlib-go DDSketch buffers and
OTel runtime are the dominant terms, ~ 10× larger).
Caveats
CPU diffs are dominated by measurement noise. To detect a 10%
shim regression at deployment level you'd need a saturating
workload (e.g. 1e5 cardinality × 100 Hz).
backend_samples_per_sandbackend_query_p99_msNaN under ingest-only soak.Gaps in the existing harness
Documented in the doc, not fixed:
/metricsempty under ingest-only.run-baseline-sweep.shstill uses deprecatedEXPORTER_RATE.Test plan
harness's queries (same NaN pattern on gateway/backend rows in both).
the doc has a reproduction recipe.
🤖 Generated with Claude Code