slo-load-test-plan
Produces one artifact: a load-test plan in which every scenario has a name, a
load shape, an injection model, and a pass/fail line traceable to a stated SLO.
What this skill owns, and what it does not
| Owned here |
Owned elsewhere |
| Which scenarios exist, and why each one exists |
Nothing |
| The load shape each scenario applies (profile, ramp, plateau, injection model) |
Nothing |
| The pass/fail line each scenario carries, expressed as a threshold derived from an SLO |
Nothing |
| The error budget each threshold is sized against |
Nothing |
| Runner-specific configuration: executor blocks, protocol setup, feeders, distributed workers, result stores |
A per-tool wrapper for k6, Gatling, JMeter, or Locust |
| Aggregating verdicts from several runners into one CI go / no-go |
A multi-runner CI gate |
| Finding which commit caused a regression after the plan is already running |
A bisection workflow |
The axis is time: this skill runs before a runner is chosen. Its output
names metrics, shapes, and numbers in prose and tables, not in a runner's
syntax. One short threshold snippet appears below purely to show what the
numbers turn into; everything else stays declarative.
Step 1 - Derive named scenarios from SLOs
For every SLO in the input:
- Identify the target metric: a latency percentile, an availability ratio, an
error rate, or a throughput floor.
- Map it to the endpoint or endpoint set it governs, weighted by the traffic
mix (an endpoint carrying 60% of requests and one carrying 2% do not deserve
equal scenario budget).
- Name the scenario after the failure mode it validates, not after the
endpoint.
checkout-p95-under-peak-load tells a reader what a red run means;
checkout-test-2 does not.
One SLO can yield several scenarios. Split whenever the boundary conditions
differ: the same p95 target at average traffic and at peak traffic are two
scenarios, because they need different load shapes and can fail independently.
| SLO |
Governs |
Scenario |
| p95 latency < 300 ms at peak load |
POST /api/checkout (20% of mix) |
checkout-latency-peak |
| p95 latency < 100 ms at average load |
GET /api/orders (60% of mix) |
orders-latency-average |
| Error rate < 0.1% under a 3x spike |
All endpoints, mix preserved |
spike-error-budget |
| Availability 99.9% over a four-week window |
All endpoints, mix preserved |
soak-availability |
Preserve the traffic mix inside each scenario. A scenario that sends 100% of its
requests to the endpoint under test measures that endpoint in isolation, not in
the contention it actually experiences.
Step 2 - Assign a load profile
Six canonical profiles, per the
Grafana k6 test types guide.
Every scenario from Step 1 gets exactly one.
| Profile |
Load level |
Duration |
What it answers |
Shape |
| Smoke |
Minimal load |
Seconds to a couple of minutes |
Does the script itself work at minimal load? |
Flat, one or two users |
| Average-load |
Average production load |
5 to 60 min (k6 test types) |
Do we meet the SLO on a normal day? |
Ramp up, plateau, ramp down |
| Stress |
Above the expected average |
5 to 60 min (k6 test types) |
How much headroom is there when load exceeds the average? |
Ramp above average, plateau |
| Soak |
Average production load |
Hours (k6 test types) |
Does it still meet the SLO after hours? |
Slow ramp, long plateau |
| Spike |
Very high, brief |
A few minutes (k6 test types) |
Do we survive a sudden, short, massive surge? |
Near-instant surge, short hold, drop |
| Breakpoint |
Increasing until failure |
Until the system breaks (k6 test types) |
Where is the capacity ceiling? |
Continuous ramp, no plateau |
Selection rules that follow from the definitions:
- A latency SLO stated "at normal traffic" takes average-load. Stated "at
peak" or "with headroom", it takes stress.
- Any service with an availability SLO gets a soak scenario. Short runs
cannot observe the failure modes that need hours to appear (memory growth,
connection-pool and file-descriptor exhaustion, log-volume and disk effects).
- A stated spike event (sale day, campaign launch, cron fan-in) gets its own
spike scenario at the stated multiple of peak, not a bigger stress run.
- Breakpoint is not a pass/fail scenario. It has no threshold, because its
purpose is to find the ceiling by reaching failure. Record its result as a
capacity number and run it only in an isolated environment.
- Every plan opens with a smoke scenario. It gates the rest: if smoke fails,
the other results are measuring the script, not the service.
Step 3 - Choose the injection model per scenario
Each scenario also declares one of two workload models. This is the most
frequently mis-stated concept in load-test planning, so state it precisely.
Closed model. A fixed population of virtual users, each finishing its
current request before starting the next: "The next iteration doesn't start
until the previous one finishes"
(k6 open and closed models).
The consequence that matters for planning: throughput is coupled to latency.
When the service slows down, offered load falls with it, so the test quietly
stops applying the load you specified - k6 names this effect coordinated
omission.
Open model. New iterations arrive at a rate you specify, independent of how
long previous ones take, so "the response times of the target system no longer
influence the load on the target system"
(k6 open and closed models).
A degrading service keeps receiving the same arrival rate, so queues build the
way they would in production.
For how k6 and Gatling name their open and closed executors, and the Gatling
"users means open, not closed" trap, see
references/runners.md.
Decision rule for the plan:
- The SLO or the traffic data is stated as a rate (RPS, orders per minute,
events per second): choose open. This covers average-load, stress, and
spike scenarios in almost every plan.
- The SLO or the constraint is stated as a concurrency level (seats,
simultaneous sessions, a connection-pool or licence ceiling): choose
closed, and say which resource the concurrency number represents.
- A soak follows the same rule as its underlying SLO. If availability is
measured per request, soak open at the average arrival rate; if the service is
a long-lived session product, soak closed at the target concurrency.
- Never choose closed for a scenario whose purpose is to observe behavior under
overload. A closed run self-throttles as latency rises and will report a
passing throughput that the service never actually sustained.
Step 4 - Derive threshold expressions from the SLO
Every scenario except breakpoint carries at least one threshold, and every
threshold is a restatement of an SLO. Per the
k6 thresholds documentation,
a threshold expression has the form <aggregation_method> <operator> <value>,
is evaluated against the metric collected during the run, and produces a
non-zero exit code when it fails.
Mechanical translation:
| SLO statement |
Metric |
Expression |
| p95 latency < 300 ms |
Request duration trend |
p(95)<300 (k6 thresholds) |
| p99 latency < 500 ms |
Request duration trend |
p(99)<500 |
| Error rate < 0.1% |
Request failure rate |
rate<0.001 (k6 thresholds) |
| Average latency < 150 ms |
Request duration trend |
avg<150 (k6 thresholds) |
| At least 500 completed checkouts per run |
Counter |
count>=500 (k6 thresholds) |
Two rules keep the thresholds honest:
Scope each threshold to the endpoints its SLO governs. A whole-run p95 is
dominated by whichever endpoint carries the most traffic, so a slow low-volume
checkout hides behind a fast high-volume list call. Thresholds can be attached
to a tagged subset of requests, written as metric_name{tag_name:tag_value},
for example http_req_duration{type:API}
(k6 thresholds).
The plan states the tag per scenario; the implementer wires it.
Say per scenario whether a breach aborts the run. The long form of a
threshold supports abortOnFail: true to stop execution on failure and
delayAbortEval to postpone evaluation until enough data has accumulated, given
as a relative time string such as '10s'
(k6 thresholds):
thresholds: {
http_req_duration: [{ threshold: 'p(95)<300', abortOnFail: true, delayAbortEval: '10s' }],
http_req_failed: ['rate<0.001'],
}
Abort when continuing costs something and teaches nothing:
- Any run against production or a shared environment, where continued load past
a breach burns real error budget for real users.
- Long soaks, where a threshold broken in minute 8 will still be broken in hour
4 and the remaining hours only cost machine time.
- Any run whose smoke scenario has not passed.
Do not abort when the failure itself is the measurement: spike recovery (you
want to see whether latency returns to baseline after the surge), stress
scenarios exploring headroom, and breakpoint runs, which have no threshold to
abort on at all.
Step 5 - Size the error budget and calibrate the soak
An error budget is what the SLO leaves over: "the error budget is 100% minus the
SLO". The Google SRE Workbook's worked case: a 99.9% SLO on a service receiving 3
million requests over a four-week period allows a budget of 3,000 (0.1%) errors
(Implementing SLOs).
The formula the plan uses:
budget_events = (1 - SLO_target) x total_events_in_window
Calibrate the soak in three steps.
- Size the production budget. State the window explicitly, because the
budget is meaningless without one. Four weeks at an average 100 RPS is
2,419,200 seconds x 100 = 241,920,000 requests; at a 99.9% SLO the budget is
241,920 failed requests.
- Set the soak's pass/fail line at its pro-rata share. A four-hour soak at
300 RPS issues 4,320,000 requests. Its share of the budget is
(1 - 0.999) x 4,320,000 = 4,320 failures, which is exactly the SLO's own
rate. So the threshold is rate<0.001, and the plan records how that number
was reached rather than presenting 0.001 as a round number someone liked.
- Add a burn-rate cap if the soak touches a live budget. Burn rate is "how
fast, relative to the SLO, the service consumes the error budget"
(Alerting on SLOs); a
constant error rate equal to the budget rate is a burn rate of 1, and double
that rate exhausts the window's budget in half the time
(Alerting on SLOs). When the
soak runs against production or any environment sharing the measured budget,
cap the run so a single test cannot spend more than a stated fraction of the
window's budget, and abort at that count. Half the window budget is a
common practitioner convention, not a standard; pick the fraction
deliberately and write it down. The SRE Workbook's own illustration of an
incident causing 1,500 errors against a 3,000-error budget shows what a
50% draw looks like
(Implementing SLOs).
Every threshold in the plan should now be traceable: SLO, then window, then
event count, then budget, then the number in the expression. A threshold that
cannot be traced back this way is a guess.
Output format
One Markdown document:
## Load-test plan: <service> (<date>)
### SLO inventory
| SLO | Metric | Window | Current baseline | Source |
### Scenario matrix
| Scenario | SLO governed | Profile | Injection model | Target rate or concurrency | Duration |
### Profile definitions
For each scenario:
- Ramp: <start> to <peak> over <T>
- Plateau: hold <peak> for <T>
- Ramp-down: <peak> to 0 over <T>
- Injection model: open (arrivals/sec) | closed (concurrency), and why
- Traffic mix applied: <endpoint: weight, ...>
### Thresholds
| Scenario | Metric | Scope tag | Expression | Abort on fail | SLO it restates |
### Error-budget derivation
| SLO | Window | Total events | Budget events | Soak allowance | Burn-rate cap |
### Open questions
Anything the plan assumed rather than knew: peak RPS, growth rate, whether an
SLO is agreed or aspirational.
Worked example
A full worked example - a checkout service's four SLOs turned into a
six-scenario matrix with per-scenario thresholds, each traceable back to its
SLO - is in references/runners.md.
Anti-patterns
| Anti-pattern |
Why it fails |
Fix |
| Thresholds picked as round numbers ("p95 < 500 ms sounds fast") |
Passes while the SLO is breached, or fails while it is met |
Derive every number from an SLO and record the derivation (Steps 4 and 5) |
| One mega-scenario covering all endpoints |
A breach tells you the service is slow, not which endpoint |
One scenario per SLO boundary condition, thresholds scoped by tag |
| Closed model used for an overload scenario |
Throughput falls with latency, so the intended load is never applied and the run looks healthier than production would (k6 open and closed models) |
Open model whenever the target is a rate |
| Only spike and stress scenarios |
Misses slow degradation; extended-period reliability needs an extended-period run (k6 test types) |
A soak scenario for any service with an availability SLO |
| Breakpoint run against production |
It is designed to reach the capacity limit, which means designed to break the service (k6 test types) |
Isolated environment only, and no threshold attached |
| Choosing the load tool inside the plan |
Tool choice depends on stack, CI, skills, and budget, none of which the SLO document contains |
Leave the plan runner-agnostic; decide the tool afterwards |
| Writing the plan directly as runner code |
The plan stops being reviewable by the people who own the SLOs |
Tables first, syntax later |
Limitations
- The plan is only as good as the traffic numbers it assumes. If peak RPS or
the endpoint mix is wrong, every arrival rate in the matrix is wrong. Record
the assumed numbers in the Open questions section so a reviewer can challenge
them.
- No runnable artifact. The output is a planning document. Turning it into
an executable run needs the chosen runner's own configuration.
- Single-service scope. A plan covers one service's endpoints. A flow that
spans services (checkout calling inventory and payment) needs a plan per
service plus an agreement on which one owns the end-to-end SLO.
- Breakpoint results are not comparable across environments. A ceiling found
in staging bounds staging, not production, unless the two are provisioned
identically.
1---2name: slo-load-test-plan3description: "Use when SLOs and an endpoint list exist but nobody has decided which load tests to run, what load each carries or what counts as failure. Turns each SLO into scenarios with a load profile, workload model, pass/fail threshold and error-budget allowance, before any tool is configured."4metadata:5 source: https://skillmd.com/skills/testland/slo-load-test-plan6---78# slo-load-test-plan910Produces one artifact: a load-test plan in which every scenario has a name, a11load shape, an injection model, and a pass/fail line traceable to a stated SLO.1213## What this skill owns, and what it does not1415| Owned here | Owned elsewhere |16|---|---|17| Which scenarios exist, and why each one exists | Nothing |18| The load shape each scenario applies (profile, ramp, plateau, injection model) | Nothing |19| The pass/fail line each scenario carries, expressed as a threshold derived from an SLO | Nothing |20| The error budget each threshold is sized against | Nothing |21| Runner-specific configuration: executor blocks, protocol setup, feeders, distributed workers, result stores | A per-tool wrapper for k6, Gatling, JMeter, or Locust |22| Aggregating verdicts from several runners into one CI go / no-go | A multi-runner CI gate |23| Finding which commit caused a regression after the plan is already running | A bisection workflow |2425The axis is **time**: this skill runs before a runner is chosen. Its output26names metrics, shapes, and numbers in prose and tables, not in a runner's27syntax. One short threshold snippet appears below purely to show what the28numbers turn into; everything else stays declarative.2930## Step 1 - Derive named scenarios from SLOs3132For every SLO in the input:33341. Identify the target metric: a latency percentile, an availability ratio, an35 error rate, or a throughput floor.362. Map it to the endpoint or endpoint set it governs, weighted by the traffic37 mix (an endpoint carrying 60% of requests and one carrying 2% do not deserve38 equal scenario budget).393. Name the scenario after the failure mode it validates, not after the40 endpoint. `checkout-p95-under-peak-load` tells a reader what a red run means;41 `checkout-test-2` does not.4243**One SLO can yield several scenarios.** Split whenever the boundary conditions44differ: the same p95 target at average traffic and at peak traffic are two45scenarios, because they need different load shapes and can fail independently.4647| SLO | Governs | Scenario |48|---|---|---|49| p95 latency < 300 ms at peak load | `POST /api/checkout` (20% of mix) | `checkout-latency-peak` |50| p95 latency < 100 ms at average load | `GET /api/orders` (60% of mix) | `orders-latency-average` |51| Error rate < 0.1% under a 3x spike | All endpoints, mix preserved | `spike-error-budget` |52| Availability 99.9% over a four-week window | All endpoints, mix preserved | `soak-availability` |5354Preserve the traffic mix inside each scenario. A scenario that sends 100% of its55requests to the endpoint under test measures that endpoint in isolation, not in56the contention it actually experiences.5758## Step 2 - Assign a load profile5960Six canonical profiles, per the61[Grafana k6 test types guide](https://grafana.com/docs/k6/latest/testing-guides/test-types/).62Every scenario from Step 1 gets exactly one.6364| Profile | Load level | Duration | What it answers | Shape |65|---|---|---|---|---|66| Smoke | Minimal load | Seconds to a couple of minutes | Does the script itself work at minimal load? | Flat, one or two users |67| Average-load | Average production load | 5 to 60 min ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | Do we meet the SLO on a normal day? | Ramp up, plateau, ramp down |68| Stress | Above the expected average | 5 to 60 min ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | How much headroom is there when load exceeds the average? | Ramp above average, plateau |69| Soak | Average production load | Hours ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | Does it still meet the SLO after hours? | Slow ramp, long plateau |70| Spike | Very high, brief | A few minutes ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | Do we survive a sudden, short, massive surge? | Near-instant surge, short hold, drop |71| Breakpoint | Increasing until failure | Until the system breaks ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | Where is the capacity ceiling? | Continuous ramp, no plateau |7273Selection rules that follow from the definitions:7475- A latency SLO stated "at normal traffic" takes **average-load**. Stated "at76 peak" or "with headroom", it takes **stress**.77- Any service with an availability SLO gets a **soak** scenario. Short runs78 cannot observe the failure modes that need hours to appear (memory growth,79 connection-pool and file-descriptor exhaustion, log-volume and disk effects).80- A stated spike event (sale day, campaign launch, cron fan-in) gets its own81 **spike** scenario at the stated multiple of peak, not a bigger stress run.82- **Breakpoint is not a pass/fail scenario.** It has no threshold, because its83 purpose is to find the ceiling by reaching failure. Record its result as a84 capacity number and run it only in an isolated environment.85- Every plan opens with a **smoke** scenario. It gates the rest: if smoke fails,86 the other results are measuring the script, not the service.8788## Step 3 - Choose the injection model per scenario8990Each scenario also declares one of two workload models. This is the most91frequently mis-stated concept in load-test planning, so state it precisely.9293**Closed model.** A fixed population of virtual users, each finishing its94current request before starting the next: "The next iteration doesn't start95until the previous one finishes"96([k6 open and closed models](https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/open-vs-closed/)).97The consequence that matters for planning: **throughput is coupled to latency.**98When the service slows down, offered load falls with it, so the test quietly99stops applying the load you specified - k6 names this effect coordinated100omission.101102**Open model.** New iterations arrive at a rate you specify, independent of how103long previous ones take, so "the response times of the target system no longer104influence the load on the target system"105([k6 open and closed models](https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/open-vs-closed/)).106A degrading service keeps receiving the same arrival rate, so queues build the107way they would in production.108109For how k6 and Gatling name their open and closed executors, and the Gatling110"users means open, not closed" trap, see111[references/runners.md](references/runners.md).112113Decision rule for the plan:114115- The SLO or the traffic data is stated as a **rate** (RPS, orders per minute,116 events per second): choose **open**. This covers average-load, stress, and117 spike scenarios in almost every plan.118- The SLO or the constraint is stated as a **concurrency level** (seats,119 simultaneous sessions, a connection-pool or licence ceiling): choose120 **closed**, and say which resource the concurrency number represents.121- A soak follows the same rule as its underlying SLO. If availability is122 measured per request, soak open at the average arrival rate; if the service is123 a long-lived session product, soak closed at the target concurrency.124- Never choose closed for a scenario whose purpose is to observe behavior under125 overload. A closed run self-throttles as latency rises and will report a126 passing throughput that the service never actually sustained.127128## Step 4 - Derive threshold expressions from the SLO129130Every scenario except breakpoint carries at least one threshold, and every131threshold is a restatement of an SLO. Per the132[k6 thresholds documentation](https://grafana.com/docs/k6/latest/using-k6/thresholds/),133a threshold expression has the form `<aggregation_method> <operator> <value>`,134is evaluated against the metric collected during the run, and produces a135non-zero exit code when it fails.136137Mechanical translation:138139| SLO statement | Metric | Expression |140|---|---|---|141| p95 latency < 300 ms | Request duration trend | `p(95)<300` ([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)) |142| p99 latency < 500 ms | Request duration trend | `p(99)<500` |143| Error rate < 0.1% | Request failure rate | `rate<0.001` ([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)) |144| Average latency < 150 ms | Request duration trend | `avg<150` ([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)) |145| At least 500 completed checkouts per run | Counter | `count>=500` ([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)) |146147Two rules keep the thresholds honest:148149**Scope each threshold to the endpoints its SLO governs.** A whole-run p95 is150dominated by whichever endpoint carries the most traffic, so a slow low-volume151checkout hides behind a fast high-volume list call. Thresholds can be attached152to a tagged subset of requests, written as `metric_name{tag_name:tag_value}`,153for example `http_req_duration{type:API}`154([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)).155The plan states the tag per scenario; the implementer wires it.156157**Say per scenario whether a breach aborts the run.** The long form of a158threshold supports `abortOnFail: true` to stop execution on failure and159`delayAbortEval` to postpone evaluation until enough data has accumulated, given160as a relative time string such as `'10s'`161([k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)):162163```javascript164thresholds: {165 http_req_duration: [{ threshold: 'p(95)<300', abortOnFail: true, delayAbortEval: '10s' }],166 http_req_failed: ['rate<0.001'],167}168```169170Abort when continuing costs something and teaches nothing:171172- Any run against production or a shared environment, where continued load past173 a breach burns real error budget for real users.174- Long soaks, where a threshold broken in minute 8 will still be broken in hour175 4 and the remaining hours only cost machine time.176- Any run whose smoke scenario has not passed.177178Do not abort when the failure itself is the measurement: spike recovery (you179want to see whether latency returns to baseline after the surge), stress180scenarios exploring headroom, and breakpoint runs, which have no threshold to181abort on at all.182183## Step 5 - Size the error budget and calibrate the soak184185An error budget is what the SLO leaves over: "the error budget is 100% minus the186SLO". The Google SRE Workbook's worked case: a 99.9% SLO on a service receiving 3187million requests over a four-week period allows a budget of 3,000 (0.1%) errors188([Implementing SLOs](https://sre.google/workbook/implementing-slos/)).189190The formula the plan uses:191192```193budget_events = (1 - SLO_target) x total_events_in_window194```195196Calibrate the soak in three steps.1971981. **Size the production budget.** State the window explicitly, because the199 budget is meaningless without one. Four weeks at an average 100 RPS is200 2,419,200 seconds x 100 = 241,920,000 requests; at a 99.9% SLO the budget is201 241,920 failed requests.2022. **Set the soak's pass/fail line at its pro-rata share.** A four-hour soak at203 300 RPS issues 4,320,000 requests. Its share of the budget is204 `(1 - 0.999) x 4,320,000 = 4,320` failures, which is exactly the SLO's own205 rate. So the threshold is `rate<0.001`, and the plan records how that number206 was reached rather than presenting 0.001 as a round number someone liked.2073. **Add a burn-rate cap if the soak touches a live budget.** Burn rate is "how208 fast, relative to the SLO, the service consumes the error budget"209 ([Alerting on SLOs](https://sre.google/workbook/alerting-on-slos/)); a210 constant error rate equal to the budget rate is a burn rate of 1, and double211 that rate exhausts the window's budget in half the time212 ([Alerting on SLOs](https://sre.google/workbook/alerting-on-slos/)). When the213 soak runs against production or any environment sharing the measured budget,214 cap the run so a single test cannot spend more than a stated fraction of the215 window's budget, and abort at that count. **Half the window budget is a216 common practitioner convention, not a standard**; pick the fraction217 deliberately and write it down. The SRE Workbook's own illustration of an218 incident causing 1,500 errors against a 3,000-error budget shows what a219 50% draw looks like220 ([Implementing SLOs](https://sre.google/workbook/implementing-slos/)).221222Every threshold in the plan should now be traceable: SLO, then window, then223event count, then budget, then the number in the expression. A threshold that224cannot be traced back this way is a guess.225226## Output format227228One Markdown document:229230```markdown231## Load-test plan: <service> (<date>)232233### SLO inventory234| SLO | Metric | Window | Current baseline | Source |235236### Scenario matrix237| Scenario | SLO governed | Profile | Injection model | Target rate or concurrency | Duration |238239### Profile definitions240For each scenario:241- Ramp: <start> to <peak> over <T>242- Plateau: hold <peak> for <T>243- Ramp-down: <peak> to 0 over <T>244- Injection model: open (arrivals/sec) | closed (concurrency), and why245- Traffic mix applied: <endpoint: weight, ...>246247### Thresholds248| Scenario | Metric | Scope tag | Expression | Abort on fail | SLO it restates |249250### Error-budget derivation251| SLO | Window | Total events | Budget events | Soak allowance | Burn-rate cap |252253### Open questions254Anything the plan assumed rather than knew: peak RPS, growth rate, whether an255SLO is agreed or aspirational.256```257258## Worked example259260A full worked example - a checkout service's four SLOs turned into a261six-scenario matrix with per-scenario thresholds, each traceable back to its262SLO - is in [references/runners.md](references/runners.md).263264## Anti-patterns265266| Anti-pattern | Why it fails | Fix |267|---|---|---|268| Thresholds picked as round numbers ("p95 < 500 ms sounds fast") | Passes while the SLO is breached, or fails while it is met | Derive every number from an SLO and record the derivation (Steps 4 and 5) |269| One mega-scenario covering all endpoints | A breach tells you the service is slow, not which endpoint | One scenario per SLO boundary condition, thresholds scoped by tag |270| Closed model used for an overload scenario | Throughput falls with latency, so the intended load is never applied and the run looks healthier than production would ([k6 open and closed models](https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/open-vs-closed/)) | Open model whenever the target is a rate |271| Only spike and stress scenarios | Misses slow degradation; extended-period reliability needs an extended-period run ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | A soak scenario for any service with an availability SLO |272| Breakpoint run against production | It is designed to reach the capacity limit, which means designed to break the service ([k6 test types](https://grafana.com/docs/k6/latest/testing-guides/test-types/)) | Isolated environment only, and no threshold attached |273| Choosing the load tool inside the plan | Tool choice depends on stack, CI, skills, and budget, none of which the SLO document contains | Leave the plan runner-agnostic; decide the tool afterwards |274| Writing the plan directly as runner code | The plan stops being reviewable by the people who own the SLOs | Tables first, syntax later |275276## Limitations277278- **The plan is only as good as the traffic numbers it assumes.** If peak RPS or279 the endpoint mix is wrong, every arrival rate in the matrix is wrong. Record280 the assumed numbers in the Open questions section so a reviewer can challenge281 them.282- **No runnable artifact.** The output is a planning document. Turning it into283 an executable run needs the chosen runner's own configuration.284- **Single-service scope.** A plan covers one service's endpoints. A flow that285 spans services (checkout calling inventory and payment) needs a plan per286 service plus an agreement on which one owns the end-to-end SLO.287- **Breakpoint results are not comparable across environments.** A ceiling found288 in staging bounds staging, not production, unless the two are provisioned289 identically.