Load Testing
by @codenova58
Deep load testing workflow—goals and SLOs, workload modeling, scenario design, environment fidelity, execution, metrics interpretation, and bottlenecks to fi...
clawhub install load-testing📖 About This Skill
name: load-testing description: Deep load testing workflow—goals and SLOs, workload modeling, scenario design, environment fidelity, execution, metrics interpretation, and bottlenecks to fixes. Use when validating capacity, before launches, or reproducing latency under stress.
Load Testing (Deep Workflow)
Load tests answer whether the system meets behavior under target load—not “how many RPS the tool prints.” Tie every run to SLOs, workload realism, and analysis that engineers can act on.
When to Offer This Workflow
Trigger conditions:
Initial offer:
Use seven stages: (1) goals & SLOs, (2) workload model, (3) scenarios & scripts, (4) environment & data, (5) run & observe, (6) analyze bottlenecks, (7) fixes & retest. Confirm tool (k6, Locust, Gatling, JMeter) and environment policy (prod-like staging vs synthetic).
Stage 1: Goals & SLOs
Goal: Define success in measurable terms.
Questions
1. Peak RPS/users, growth assumption, duration of peak 2. SLOs: p95/p99 latency, error rate, throughput per critical endpoint 3. Scope: read-heavy vs write-heavy; background jobs interaction
Exit condition: Numeric targets + out of scope (e.g., “third-party API mocked”).
Stage 2: Workload Model
Goal: Representative mix—not one URL forever.
Practices
Exit condition: Workload profile documented (table or script comments).
Stage 3: Scenarios & Scripts
Goal: Deterministic, idempotent load scripts where possible.
Practices
Pitfalls
Exit condition: Smoke run at small k validates script correctness.
Stage 4: Environment & Data
Goal: Fidelity without destroying prod.
Rules
Exit condition: Safety checklist: no prod writes unless explicitly planned and isolated.
Stage 5: Run & Observe
Goal: System-wide visibility during test.
Instrumentation
Exit condition: Dashboard or runbook link for the test window.
Stage 6: Analyze Bottlenecks
Goal: Identify dominant constraint: app, DB, network, dependency.
Process
Exit condition: Written hypothesis with evidence (graphs, trace ids).
Stage 7: Fixes & Retest
Goal: Controlled changes with retest protocol.
Practices
Final Review Checklist
Tips for Effective Guidance
Handling Deviations
🔒 Constraints
Exit condition: Safety checklist: no prod writes unless explicitly planned and isolated.