Write a Capacity Report
Purpose
State, with evidence, how much load the system can sustain while meeting its SLOs, which resource runs out first, and how much headroom remains against current and forecast demand, so that scaling and investment decisions are made before users feel the limit.
When to use
- A stepped, stress or scalability test has been run to find the system's limits.
- Stakeholders ask whether the system can absorb forecast growth, a campaign or a new tenant.
- Infrastructure sizing, autoscaling limits or reserved capacity must be justified.
When not to use
- A single test run needs a pass/fail interpretation. Use
load-test-analysis.
- Long-term capacity planning from production telemetry is needed rather than test results. Use
capacity-planning.
- The test has not been designed yet. Use
performance-test-plan.
Inputs
Required:
- Test results across increasing load levels (throughput, latency percentiles, errors per step) and the SLO or acceptance criteria to judge "sustainable".
Optional, improves quality:
- Resource metrics per step (CPU, memory, pools, database, queues), instance counts and autoscaling configuration.
- Current production peak and growth forecast, environment differences from production, cost per instance.
If results per load step are missing, ask. If no SLO is given, ask; without it "sustainable" cannot be defined. If the user cannot provide one, use a proposed threshold marked [ASSUMPTION].
Process
- Define "sustainable": the highest load at which all SLO criteria (e.g., p95 latency, error rate) hold during steady state for the full step duration, with no degrading trend.
- Tabulate each load step with its results and mark the last step that meets the definition; this is the maximum sustainable load (MSL). Note the breaking point separately.
- Identify the limiting resource at MSL: the first resource to saturate (CPU, memory, connection or thread pools, database, downstream dependency, rate limit). Support it with metrics; otherwise label it
[ASSUMPTION].
- Describe scaling behavior: does throughput scale linearly with instances; where does it stop (shared database, locks, external limits); autoscaling reaction time vs. spike rise time.
- Adjust for environment differences from production (instance size, count, data volume) and state the resulting uncertainty; do not extrapolate linearly beyond evidence.
- Calculate headroom: (MSL − current peak) / current peak, and against forecast peaks; also express it as time until exhaustion if a growth rate is given.
- Set a safety margin and alert thresholds (e.g., act when peak reaches a stated share of MSL) with the reasoning.
- Recommend capacity actions: scale-out limits to raise, bottleneck to remove, configuration changes, cost-relevant options; each with the expected new MSL as a hypothesis to verify.
- List assumptions, limitations and open questions.
- If the goal continues, suggest
capacity-planning for ongoing forecasting, scalability-review if the limit is architectural, or finops-review for the cost side of scaling options.
Output format
# Capacity Report: <system / test date>
Sustainable = <definition with SLO values>
Maximum sustainable load: <value> · Limiting resource: <resource> · Breaking point: <value>
## Results per Load Step
| Step | Target load | Achieved | p95 | p99 | Error rate | Key resource usage | Within SLO? |
|---|---|---|---|---|---|---|---|
## Headroom
| Reference | Load | Headroom vs MSL | Time to exhaustion |
|---|---|---|---|
| Current peak | | | |
| Forecast peak | | | |
## Scaling Behavior
## Environment Differences and Confidence
## Recommendations and Alert Thresholds
| Action | Expected effect (hypothesis) | Trigger / threshold | Verify by |
|---|---|---|---|
## Assumptions and Open Questions
Quality checklist
Common pitfalls
- Reporting the breaking point as capacity. Capacity is the highest load that still meets the SLO, usually well below the breaking point.
- Linear extrapolation ("2 instances handle 200 req/s, so 10 handle 1000"). Shared resources stop linear scaling; test it or state it as an assumption.
- Ignoring autoscaling lag: capacity after scale-out does not help if spikes rise faster than new instances start.
Example
Input: Steps 100/150/200/250/300 req/s; p95 SLO 500 ms; p95 = 180/220/310/480/1900 ms; errors 0/0/0.1/0.3/4%; DB CPU 85% at 250; current peak 160 req/s; forecast +40% next year.
Excerpt of output:
- MSL: 250 req/s (last step within SLO). Breaking point: 300 req/s. Limiting resource: database CPU (85% at 250)
[confirm with wait statistics].
| Reference |
Load |
Headroom vs MSL |
| Current peak |
160 req/s |
(250 − 160) / 160 = 56% |
| Forecast peak (+40%) |
224 req/s |
(250 − 224) / 224 = 12% |
- Recommendation: alert when peak exceeds 200 req/s (80% of MSL); reduce database load before forecast peak.
1---2name: capacity-test-report3description: "Writes a capacity test report that determines the maximum sustainable load within SLOs from stepped or stress test results, identifies the limiting resource, calculates headroom against current and forecast peaks, describes scaling behavior and its limits, and recommends capacity actions with their triggers. Use after capacity, stress or scalability tests, when leadership asks how much growth the system can absorb, or when infrastructure sizing and scaling limits must be justified with test evidence."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/capacity-test-report7 version: "1.0.0"8 language: en9 category: 06-quality10 role: performance-engineer11 area: performance12 title: "Write a capacity report"13 related: "load-test-analysis, performance-test-plan, capacity-planning, scalability-review, finops-review"14 prompt: "We ran a stepped load test on the search service up to failure. Write a capacity report: how much headroom do we have for next year's forecast?"15---1617# Write a Capacity Report1819## Purpose20State, with evidence, how much load the system can sustain while meeting its SLOs, which resource runs out first, and how much headroom remains against current and forecast demand, so that scaling and investment decisions are made before users feel the limit.2122## When to use23- A stepped, stress or scalability test has been run to find the system's limits.24- Stakeholders ask whether the system can absorb forecast growth, a campaign or a new tenant.25- Infrastructure sizing, autoscaling limits or reserved capacity must be justified.2627## When not to use28- A single test run needs a pass/fail interpretation. Use `load-test-analysis`.29- Long-term capacity planning from production telemetry is needed rather than test results. Use `capacity-planning`.30- The test has not been designed yet. Use `performance-test-plan`.3132## Inputs33Required:34- Test results across increasing load levels (throughput, latency percentiles, errors per step) and the SLO or acceptance criteria to judge "sustainable".3536Optional, improves quality:37- Resource metrics per step (CPU, memory, pools, database, queues), instance counts and autoscaling configuration.38- Current production peak and growth forecast, environment differences from production, cost per instance.3940If results per load step are missing, ask. If no SLO is given, ask; without it "sustainable" cannot be defined. If the user cannot provide one, use a proposed threshold marked `[ASSUMPTION]`.4142## Process431. Define "sustainable": the highest load at which all SLO criteria (e.g., p95 latency, error rate) hold during steady state for the full step duration, with no degrading trend.442. Tabulate each load step with its results and mark the last step that meets the definition; this is the maximum sustainable load (MSL). Note the breaking point separately.453. Identify the limiting resource at MSL: the first resource to saturate (CPU, memory, connection or thread pools, database, downstream dependency, rate limit). Support it with metrics; otherwise label it `[ASSUMPTION]`.464. Describe scaling behavior: does throughput scale linearly with instances; where does it stop (shared database, locks, external limits); autoscaling reaction time vs. spike rise time.475. Adjust for environment differences from production (instance size, count, data volume) and state the resulting uncertainty; do not extrapolate linearly beyond evidence.486. Calculate headroom: (MSL − current peak) / current peak, and against forecast peaks; also express it as time until exhaustion if a growth rate is given.497. Set a safety margin and alert thresholds (e.g., act when peak reaches a stated share of MSL) with the reasoning.508. Recommend capacity actions: scale-out limits to raise, bottleneck to remove, configuration changes, cost-relevant options; each with the expected new MSL as a hypothesis to verify.519. List assumptions, limitations and open questions.5210. If the goal continues, suggest `capacity-planning` for ongoing forecasting, `scalability-review` if the limit is architectural, or `finops-review` for the cost side of scaling options.5354## Output format55```markdown56# Capacity Report: <system / test date>57Sustainable = <definition with SLO values>58Maximum sustainable load: <value> · Limiting resource: <resource> · Breaking point: <value>5960## Results per Load Step61| Step | Target load | Achieved | p95 | p99 | Error rate | Key resource usage | Within SLO? |62|---|---|---|---|---|---|---|---|6364## Headroom65| Reference | Load | Headroom vs MSL | Time to exhaustion |66|---|---|---|---|67| Current peak | | | |68| Forecast peak | | | |6970## Scaling Behavior71## Environment Differences and Confidence72## Recommendations and Alert Thresholds73| Action | Expected effect (hypothesis) | Trigger / threshold | Verify by |74|---|---|---|---|75## Assumptions and Open Questions76```7778## Quality checklist79- [ ] "Sustainable" is defined with explicit SLO values before the MSL is stated.80- [ ] MSL comes from a measured step, not an interpolation or extrapolation beyond tested load.81- [ ] The limiting resource is backed by metrics or labeled `[ASSUMPTION]`.82- [ ] Headroom is calculated against both current and forecast peak, with the formula shown.83- [ ] Environment differences and the resulting confidence are stated.84- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.8586## Common pitfalls87- Reporting the breaking point as capacity. Capacity is the highest load that still meets the SLO, usually well below the breaking point.88- Linear extrapolation ("2 instances handle 200 req/s, so 10 handle 1000"). Shared resources stop linear scaling; test it or state it as an assumption.89- Ignoring autoscaling lag: capacity after scale-out does not help if spikes rise faster than new instances start.9091## Example92Input: Steps 100/150/200/250/300 req/s; p95 SLO 500 ms; p95 = 180/220/310/480/1900 ms; errors 0/0/0.1/0.3/4%; DB CPU 85% at 250; current peak 160 req/s; forecast +40% next year.9394Excerpt of output:95- MSL: 250 req/s (last step within SLO). Breaking point: 300 req/s. Limiting resource: database CPU (85% at 250) `[confirm with wait statistics]`.96| Reference | Load | Headroom vs MSL |97|---|---|---|98| Current peak | 160 req/s | (250 − 160) / 160 = 56% |99| Forecast peak (+40%) | 224 req/s | (250 − 224) / 224 = 12% |100- Recommendation: alert when peak exceeds 200 req/s (80% of MSL); reduce database load before forecast peak.