← Back to Pull requests

benchmarking: pace boomer to a target rate and add the resumepaused user class #2350

Closed
unknown closed this pull request without merging on Oct 13, 2026 21:49 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 17:41 UTC
Author

This PR lets boomer hold a fixed request rate for each ladder step, and adds a user class, resumepaused, that drives ate-api-server's cold resume path at that rate. It is needed for ate-api-server capacity runs: a closed-loop user can't hold a rate, because the offered load drops whenever the server slows down. Benchmark-only, with no production code changes.

Commits

1. Pace boomer to a target request rate per ladder step. A new dynconfig field, target_rps, is set with --target-rps or per ladder step as users:duration@rps (e.g. 200:3m@4000). Boomer picks up a change within 10 s. Only user classes that pace themselves honor it, which today is resumepaused.
2. Add the resumepaused user class. Each user owns one actor. On its first iteration the user creates the actor and makes it cold with a resume and a pause; every later iteration resumes it (ResumeActorCold, paced to target_rps) and pauses it again (PauseActor). The warm-up is unpaced and recorded under its own names (CreateActor, ResumeActorWarmup, PauseActorWarmup) in the step that added the user. Every actor is deleted on exit. It sends no traffic to the actors, so it runs on the fake data plane (#2300).

Notes for reviewers

  • A capacity resumepaused finds is one of resume and pause cycles, not of resumes alone.

  • Keep users at or above the rate times the p99 cycle time, or a step falls short of its rate.

  • target_rps paces one boomer worker.

  • A step that adds many users carries their warm-up load while they join at the spawn rate, so trim the start of each step. When a step lowers the user count, the stopped users' actors stay paused until boomer exits.

  • The tests.yaml capacity tests come in a follow-up PR.
  • Details are in the ResumePaused section of benchmarking/README.md.

    Testing

  • go test -race ./internal/benchmarking/boomer/...

  • python3 benchmarking/locust/unit_tests/test_ladder_shape.py (needs locust)

  • python3 benchmarking/automation/test_orchestrator.py
  • Addresses #2261

  • Tests pass

  • Appropriate changes to documentation are included in the PR
  • Diff: 264 lines (+198 / -66) across 3 files Reviewer: haiyanmeng Review duration: 7447m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 264 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.334
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2350"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%