Skip to content

feat: add observed soak telemetry and validity gates - #2

Merged
bbik52 merged 3 commits into
mainfrom
feature/soak-observability
Nov 17, 2026
Merged

bbik52 merged 3 commits into
mainfrom
feature/soak-observability

Conversation

@bbik52

@bbik52 bbik52 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Run baseline, profiling warmup, delivery preflight, steady load, final drain and cooldown with one spool reader. Require explicit Tracewick and agent pins and verify installed runtime identity before traffic. Preserve the RoadRunner 256 MiB worker memory supervisor and invalidate worker recycling even when the container stays up.

Collect per-process RSS, anonymous memory, CPU, file descriptors and OS threads separately from cgroup memory and CPU. Record queue, delivery, writer diagnostics and k6 checkpoints in JSONL and export JSON, CSV and Markdown. Retain the legacy runner for historical reproductions. The fast CI job validates harness logic, shell syntax and Compose configuration.

Linux VPS validation

Ubuntu 26.04.1, Docker 29.1.3, Compose 2.40.3, cgroup v2 with systemd, 2 vCPU and 3.8 GiB RAM. RoadRunner 2025.1.15 with one worker, PHP 8.4.27, stack depth 48, 25 ms busy work and 10 ms sleep per request. Go agent was the only spool reader. The RR and agent containers used UID:GID 33:33 with a shared spool owned by 33:33. Separate container cgroup scopes confirmed resource attribution. Ports were published on loopback.

Component Pin
Benchmarks e4835846fd0ba04b895ea81c0bb4a128da82e103
Tracewick 55eb7bdb91cd4269a86bb0dd8ce22a243e5486b4
Agent a15f0d310ba6d5942e67b37d3c3c55dc1b3b8100
Excimer 1.2.7 23f541b9d970db0524a1b2506b4df727e5e59998
Pyroscope grafana/pyroscope:2.4.2
k6 grafana/k6:1.8.2
  • Passed. make check-soak with 16 regression tests, shell syntax and Compose config. PHP lint passed for the spool probe and RR fixture. GitHub Checks passed on the final revision.
  • Passed. Sample rate 1.0, 20 s baseline, 20 s warmup, 60 s steady, drain and 10 s cooldown. The final SHA produced 25 observations, including 12 in steady. The run recorded 801 deliveries by the end of cooldown and a peak of 26 pending files. Final pending and rejected were both zero. Worker identity remained continuous after the intentional baseline recreation.
  • Passed. On an isolated run of the same continuity logic, SIGKILL replaced the PHP worker during steady load. The runner exited nonzero, retained the telemetry and marked the run invalid with app: worker/process identity changed.
  • Passed. Generated JSONL, CSV, hourly summary, Markdown and resource graphs from saved pilot data.

Load calibration

180 s steady at sample rate 0.1 after a 20 s baseline and 30 s warmup. RPS is completed work iterations divided by the scheduled window. One health request is included in k6 HTTP metrics.

Target Completed HTTP errors / dropped iterations p95 / p99 Peak pending files / age Mean app cgroup vCPU
10 RPS 1,801 0 / 0 37.44 / 38.42 ms 4 / 3 s 0.288
18 RPS 3,241 0 / 0 37.63 / 39.03 ms 8 / 3 s 0.498

Use RATE=10 for the long run to leave headroom on the co-located host. At this rate the four measured containers used about 0.32 vCPU combined during the calibration sample span. The PHP worker RSS and anonymous memory stayed at 28.2 and 8.6 MiB respectively over the measured span. All calibration results are short observations.

The runner saves interval telemetry during collection. A synthetic 17,280-row postprocessing replay based on the pilot schema used 653 MiB peak RSS on macOS. The VPS soak records Linux observer usage separately. k6 retains samples for full-window latency quantiles, so generator RSS and CPU must be interpreted separately.

The 72-hour result is pending. The pilot and controls establish harness behavior on this VPS. The short windows do not establish long-run resource stability or production readiness. See methodology and the runbook.

@bbik52
bbik52 marked this pull request as ready for review November 17, 2026 18:18
@bbik52
bbik52 merged commit 472be25 into main Nov 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant