Load model and thresholds
For each scenario the load model sets how many VUs run or how many iterations start per second; the editor draws a plan chart from it before anything runs. Thresholds give the result: Passed or Thresholds failed (exit code 99 in CI). What a test does is on the Test editor page.
Core concepts
| Concept | Meaning |
|---|---|
| VU (virtual user) | A user that runs the scenario's steps in order, with its own variables and cookies. |
| Iteration | One run of all the steps by a VU. |
Closed model (constant-vus, ramping-vus) |
The VU count is fixed; when the target slows down the load drops by itself. |
Open model (constant-arrival-rate, ramping-arrival-rate) |
Iterations start on a timetable; without a free VU an iteration is dropped (dropped_iterations). |
Iteration-count models (shared-iterations, per-vu-iterations) |
End when the iterations are done or Max duration is up. |
A closed model answers "N users at the same time", an open model "what happens when N requests arrive per second". For capacity and latency targets (SLAs) an open model is the more faithful one.
Load models
Pick the model in the Load model list under the scenario's Load heading on the Scenarios & steps tab. Durations are stored as 30s, 2m, 500ms.
Constant VUs
Constant VUs (constant-vus): VUs (vus) run iterations back to back for the Duration (duration).
"executor": { "type": "constant-vus", "vus": 50, "duration": "10m" }Ramping VUs
Ramping VUs (ramping-vus), the default for new tests: the VU count changes through Stages (stages).
"executor": { "type": "ramping-vus", "startVUs": 0, "stages": [
{ "duration": "2m", "target": 100 }, { "duration": "10m", "target": 100 }, { "duration": "1m", "target": 0 } ] }Constant arrival rate
Constant arrival rate (constant-arrival-rate): Iterations (rate) start in every timeUnit.
"executor": { "type": "constant-arrival-rate", "rate": 200, "timeUnit": "1s",
"duration": "10m", "preAllocatedVUs": 100, "maxVUs": 400 }VUs needed ≈ iterations/s × the length of one iteration (think time included): with a 1.5 s iteration, 200/s needs ≈ 300 VUs. Keep Max VUs at two to three times that; iterations dropped because of a low Max VUs are not the system's limit.
Ramping arrival rate
Ramping arrival rate (ramping-arrival-rate): the iteration rate changes in stages; for capacity and stress tests.
"executor": { "type": "ramping-arrival-rate", "startRate": 10, "timeUnit": "1s",
"preAllocatedVUs": 50, "maxVUs": 500, "stages": [
{ "duration": "2m", "target": 100 }, { "duration": "5m", "target": 100 },
{ "duration": "2m", "target": 300 }, { "duration": "5m", "target": 300 } ] }Shared iterations
Shared iterations (shared-iterations): iterations are shared by the VUs, a faster VU does more. It ends when the work is done or Max duration is up; for data loading and smoke tests.
"executor": { "type": "shared-iterations", "vus": 10, "iterations": 1000, "maxDuration": "15m" }Per-VU iterations
Per-VU iterations (per-vu-iterations): every VU runs exactly the given number of iterations (example: 20 × 5 = 100).
"executor": { "type": "per-vu-iterations", "vus": 20, "iterations": 5, "maxDuration": "10m" }
Load model form and plan chart
Pacing: a VU's iteration interval
Load model → Pacing starts each VU's iteration at a Fixed (interval) or Random (min to max) interval in the VU-based models ("one order a minute").
"executor": { "type": "constant-vus", "vus": 100, "duration": "10m",
"pacing": { "mode": "fixed", "interval": "30s" } }100 VUs, one every 30 s → ≈ 3.3 iterations/s. The rules are in the Details table.
How stages work
- In each stage the load moves linearly from its start value to the Target. The first stage starts from Start VUs (or Start rate), every later one from the previous target.
- A stage with the same target as the previous one is a plateau; a last stage with target 0 brings the load down.
- Example:
startVUs: 0,2m → 100,10m → 100,1m → 0takes 13 minutes in total.
The plan chart
Under the form a Plan: VU chart (closed and iteration-count models) or Plan: iterations/s chart (open models) appears with a summary such as "13m · up to 100 VUs". The Load profile card on the test page shows the same for the saved test.
Load profile card on the test page
Which load model should I pick
| Your goal | Model |
|---|---|
| "200 users at the same time" | Constant VUs, or Ramping VUs with a plateau stage |
| "500 requests per second" (SLA, capacity) | Constant arrival rate |
| Where the system breaks | Ramping arrival rate or Find the breaking point |
| A sudden spike, hours of endurance | Ramping models with short or long stages (Test patterns) |
| A quick check, loading 10,000 records once | Shared iterations (a unique data file for loading) |
| Every user doing the flow N times | Per-VU iterations |
How to set the load model
- On the Scenarios & steps tab select the scenario, pick the Load model and fill in the fields.
- For ramping models enter the stages with Add stage.
- For open models size the VUs with the math in Constant arrival rate.
- Check on the plan chart that the duration and maximum VUs are within the license limits.
- Define the thresholds on the Thresholds and guard (N) tab and save.
- Start the first run with Share of the test's load at
10%.
Several scenarios
All scenarios run at the same time, each with its own load model; this is how you build a traffic mix:
"scenarios": [
{ "name": "browse", "executor": { "type": "constant-arrival-rate", "rate": 150, "timeUnit": "1s",
"duration": "15m", "preAllocatedVUs": 100, "maxVUs": 400 }, "steps": [ … ] },
{ "name": "checkout", "startTime": "1m", "executor": { "type": "constant-arrival-rate", "rate": 10,
"timeUnit": "1s", "duration": "14m", "preAllocatedVUs": 20, "maxVUs": 100 }, "steps": [ … ] }
]checkout starts 1 minute later (Start delay in the editor); the run ends with the longest scenario (15 minutes).
Splitting across runners and locations
The VU counts and rates in a test are the run's totals: when a run is spread over several runners or locations Spitfire splits the total, and you don't change the test. The choice is made in the Run dialog (Starting a run); the numbers are in step 5.
How the math works (step by step)
Example scenario: GET /products, GET /products/1, POST /cart.
1. VUs and iterations
One iteration (round) here is 3 requests. 100 VUs means 100 people at once, not 100 requests a second. A sign-in step marked once per VU runs only in the first round and does not count towards the license's requests per second.
2. Requests/s when you give VUs (Constant VUs, Ramping VUs)
requests/s ≈ VUs × requests per round ÷ round time (s); round time = response times + think time.
- Request 200 ms, think time 0.4 s → round 3 × 0.2 + 0.4 = 1 s; 100 VUs ≈ 300 requests/s.
- If requests take 600 ms a round takes 2.2 s: 100 ÷ 2.2 ≈ 45 iterations/s ≈ 136 requests/s. As the system struggles the load drops.
- The license applies during the run: runners slow requests down to stay under the limit (500/s on the free edition).
3. Requests/s when you give a rate (Constant rate, Ramping rate, breaking point)
- requests/s = iterations/s × requests per round: 10 × 3 = 30 requests/s.
- VUs needed ≈ iterations/s × round time: 10 VUs with a 1 s round, 22 with 2.2 s.
- Spitfire starts with Pre-allocated VUs and adds more up to Max VUs. If that isn't enough the target rate is missed: not the server's limit, raise Max VUs.
- Before the run the license looks at the peak requests/s and at Max VUs; a Max VUs far higher than needed can hit the VU limit.
4. Duration
- A scenario's duration is the sum of its stages: 2 + 10 + 1 = 13 min. With several scenarios the longest counts.
- In the breaking point test steps = (Up to − Start) ÷ Step + 1 (fraction dropped): (200 − 10) ÷ 10 + 1 = 20. A step = step length + 10 s transition = 70 s; total 1,400 s = 23 min 20 s, over the free edition's 15 minutes (900 s), so the run does not start.
- To fit it into 15 minutes the form suggests (a click fills the field):
- Step length: 900 ÷ 20 = 45 s, minus the transition 35 s.
- Step: 900 ÷ 70 = 12 steps fit; the increase that fits 190 into 12 steps is 16 (12 × 70 = 840 s).
- Up to: with 12 steps and a step of 10, 10 + 11 × 10 = 120.
5. Splitting over runners and locations
- In one location the split is even: 300 VUs, 3 runners → 100 VUs each; 60 iterations/s → 20 each.
- Over locations by percent first, then evenly within a location: 300 VUs, 60% Istanbul (2 runners), 40% Frankfurt (1 runner) → Istanbul 90 per runner, Frankfurt 120. 50 iterations/s: 30 (15 + 15) and 20.
- When a runner's CPU is full, latency shows the runner's slowness; split the load over more runners (Runners).
6. License check
Before the run the controller checks the following; if one is over, the run does not start and it says which value to lower to what:
- VUs: the sum of the max VUs of the scenarios running at the same time (Max VUs in the rate models).
- Requests/s: in the rate models the peak iterations/s × requests per round (steps that run once excluded). In the VU models during the run, each runner with its share (500/s, 2 runners → 250/s).
- Duration (step 4), runner and location count (Run dialog).
- Share of the test's load (e.g.
60%) shrinks the VUs and rates; the check uses the scaled values. - In a comparison run each side uses half the limits (on Growth 1,000 VUs, 5,000 requests/s and 5 runners per side).
| Plan | VUs | Requests/s | Duration | Runners / run | Locations / run |
|---|---|---|---|---|---|
| Free | 100 | 500 | 15 min | 1 | 1 |
| Starter | 1,000 | 5,000 | 60 min | 2 | 1 |
| Growth | 2,000 | 10,000 | 4 h | 10 | 3 |
| Scale | 10,000 | 50,000 | 8 h | 30 | 6 |
7. Apdex: user satisfaction in one number
Apdex = (satisfied + tolerating / 2) / total, between 0 and 1. A request within T is satisfied, within 4T tolerating, longer or failed frustrated (T is 500ms by default).
Example: 1000 requests, 800 within 500ms, 150 between 500ms and 2s, 50 slower or failed → (800 + 75) / 1000 = 0.875. It reads as: 0.94 and above excellent, 0.85-0.94 good, 0.70-0.85 fair, 0.50-0.70 poor, below that unacceptable. Threshold: { "metric": "apdex", "expr": "rate>0.9" }.
8. Requests/s with pacing
iterations/s = VUs ÷ mean interval (s). 2000 VUs, random 20-40 s → mean 30 s → ≈ 66.7 iterations/s, with 3 requests ≈ 200 requests/s. This is an upper bound; the license check adds it to the peak requests/s.
9. After warm-up and stages
With a warm-up of w, requests/s after warm-up = (requests after w) ÷ (run duration − w); p95, error rate and Apdex use only those requests too. A 10 min run, warmup: 1m, 3,000 requests in the first minute and 54,000 after → whole run 95, after warm-up 54,000 ÷ 540 = 100 requests/s.
License limits
The license limits one run's VUs, requests per second, duration, runners and locations (table in step 6, current limits on the License page). A run over them does not start and the reason is shown: "This run needs 150 concurrent VUs; the free edition allows up to 100." Lower Share of the test's load in the Run dialog (the test does not change), or reduce the VUs, rate or duration in the editor.
How to set thresholds
A threshold is a pass/fail criterion of the run. If crossed, the run ends as "thresholds failed" (exit code 99 in CI); with Stop when crossed it is cut short (exit code 97).
- On the Thresholds and guard (N) tab click Add threshold.
- Pick the metric in the Metric list.
- Type the Expression (e.g.
p(95)<300); a plain reading appears below. - Pick the Scope: All requests, a step or a location.
- To stop at once, tick Stop when crossed and type the warm-up time in the wait (30s) box.
- Save.
Thresholds tab: metric, expression, scope and Stop when crossed
Metrics
| Name in the form | Metric | Example expression |
|---|---|---|
| Response time (ms) | req_duration |
p(95)<500 |
| Failed request rate | req_failed |
rate<0.01 |
| Check pass rate | checks |
rate>0.99 |
| Apdex score (0–1) | apdex |
rate>0.9 |
| Request count / rate | reqs |
rate>100 (per second), count>10000 |
| Iteration duration (ms) | iteration_duration |
p(95)<2000 |
| Dropped iterations | dropped_iterations |
count<1 |
| Missed pacing starts | pacing_missed |
count<1 |
| Time to first byte (HTTP, ms) | http_req_waiting |
p(95)<300 |
| Active VUs | vus |
value<500 |
The list also has rows (SQL/Mongo), http_req_connecting, iterations, WebSocket, SSE, gRPC stream, Kafka, NATS/SQS end-to-end latency and browser (browser_lcp, browser_inp and so on) metrics.
Expressions
An expression has the form <stat> <operator> <number> (<, <=, >, >=, ==, !=). Trend metrics take p(95), p(99.9), avg, min, max, med, count; rate metrics rate (0-1); counters count and rate (per second); gauges value, min, max.
Durations are in milliseconds, rates between 0 and 1: a 1% error rate is rate<0.01, not rate<1. avg hides slow requests; for the latency users experience use p(95) or p(99).
Scope and filters
Scope: All requests, Step: … ("filter": { "step": "create_order" }, the step id) or Location: … ("filter": { "location": "frankfurt" }). scenario and check filters are JSON only. Filters can be combined, but a location filter is used alone.
"thresholds": [
{ "metric": "req_failed", "expr": "rate<0.01", "abortOnFail": true, "delayAbortEval": "1m" },
{ "metric": "req_duration", "filter": { "step": "create_order" }, "expr": "p(99)<1500" },
{ "metric": "checks", "filter": { "check": "status == 200" }, "expr": "rate>0.995" },
{ "metric": "dropped_iterations", "expr": "count<1" }
]Stop when crossed and warm-up
Stop when crossed (abortOnFail) stops the run the moment the threshold is crossed, and the run page shows a badge. wait (30s) (delayAbortEval) makes no stop decision before that time; the threshold is still computed on the total since the start. To leave the warm-up out of the result see Warm-up.
Reading threshold results
The run page's Thresholds card shows each threshold's value and result; failed ones are listed at the top with "N thresholds failed:". With no thresholds the run always counts as passed.
Thresholds card on the run page
Guard
The guard watches the target's p95 and error rate during the run and adjusts the load live. It sits under the Thresholds and guard tab and is off by default.
| Preset | Slow down | Stop |
|---|---|---|
| Gentle | above p95 500 ms or 1% errors | above 2 s or 5% |
| Standard | 1 s / 5% | 4 s / 15% |
| Custom | your own values (empty field: no limit) | your own values |
Each step goes to the Event log card ("guard throttled the load to 140 req/s (it was 200 req/s): p95 800 ms > 500 ms").
Server CPU limit
If your servers send metrics to a Tower, write Server CPU above (percent) in the Slow the load and Stop the run rows under Custom. Servers the CPU limit reads: comma-separated host.name values, empty for all. Needs the monitoring events module.
Test patterns
Change only the load model of the same test:
| Pattern | Goal | Model and example settings |
|---|---|---|
| Smoke | Do the test and the system work | shared-iterations: 1 VU, 10 iterations, maxDuration 2m |
| Load | Latency and errors at normal load | ramping-vus: to 200 in 3m, 20m at 200, to 0 in 2m |
| Stress | What happens above the expected load | ramping-arrival-rate: 100 → 200 → 400/s, 5m at each step (example below) |
| Spike | A sudden jump and recovery | ramping-vus: from 10 VUs to 500 in 10s, 2m at 500, to 10 in 10s, 3m at 10 |
| Soak | Problems that show over hours (memory, connection pool, disk) | constant-arrival-rate: 100/s, 4h; mind the license duration limit |
| Breaking point | The highest rate the system takes | Find the breaking point in the Run dialog (below) |
"executor": { "type": "ramping-arrival-rate", "startRate": 50, "timeUnit": "1s",
"preAllocatedVUs": 100, "maxVUs": 1000, "stages": [
{ "duration": "2m", "target": 100 }, { "duration": "5m", "target": 100 },
{ "duration": "2m", "target": 200 }, { "duration": "5m", "target": 200 },
{ "duration": "2m", "target": 400 }, { "duration": "5m", "target": 400 } ] }Finding the breaking point
Find the breaking point (capacity test) in the Run dialog raises the selected scenario's load step by step without changing the test; the first step that fails the p95 or error rate limit stops the run. The test's thresholds do not apply.
Find the breaking point form in the Run dialog
The Capacity test card states the result ("The system met the criteria at 200 iterations/s (200 requests/s); at the 230 iterations/s step it did not."). A value over the license gets a yellow box with a suggestion (math in step 4); a click fills the field and See the plans opens the plans.
Warm-up
Options → Warm-up ("options": { "warmup": "1m" }) keeps the first minutes, while caches and connection pools warm up, out of the result. Thresholds and budgets are judged on the requests after the warm-up only; the run page's After warm-up card sits next to Whole run. Give most tests 1-2 minutes.
Common problems
| Symptom | Cause and fix |
|---|---|
| "N dropped" on the run page | No free VU was left in an open model; raise Max VUs. If latency rose too, the system is nearing its limit. |
| RPS lower than expected (closed model) | As the target slows, VUs start fewer iterations; switch to an open model for a rate target. |
invalid threshold (examples: p(95)<500, rate<0.01, avg<=200) |
p95<500 or < 500ms was written; write p(95)<500, without units. |
a location filter cannot be combined with scenario, step or check |
Make the location threshold a separate row. |
| A threshold failed with "no data" | The filtered step never ran; check the step id. |
Details
| Topic | Detail |
|---|---|
| Duration fields | Type the number and pick the unit (ms, s, min, h). |
| Ramping VUs fields | Start VUs (startVUs, usually 0), Graceful ramp-down (gracefulRampDown, the time surplus VUs get to finish running iterations, default 30s), Stages (each row "Duration to reach Target VUs", a whole number). |
| Constant arrival rate fields | timeUnit defaults to 1s. Pre-allocated VUs (preAllocatedVUs) are prepared at the start, more are started up to Max VUs (maxVUs) when needed. |
| Ramping arrival rate fields | Start rate (startRate), Rate unit (timeUnit), Stages ("Duration to reach Target iterations/unit"), Pre-allocated VUs, Max VUs. |
| Shared iterations | iterations cannot be below the VU count. Max duration (maxDuration) defaults to 10m. |
| Pacing | Random has the mean (min + max) ÷ 2. Stagger the start is on by default (VUs don't all start in the same second). When an iteration takes longer than the interval the next starts at once, pacing_missed goes up and missed starts are not made up; above 0.1% the report shows a finding (threshold: count<1 on pacing_missed). |
| Pacing limits | Can't be used with the rate models. The interval must fit the scenario's duration; in the iteration models (iterations − 1) × mean interval must fit Max duration. The pacing rate is an upper bound (longer iterations mean pacing_missed). |
| JMeter Constant Throughput Timer | Becomes pacing: interval = 60 s × requests in an iteration ÷ throughput per thread per minute. |
| Changing Start VUs | Raising it lifts the stages whose target stays below the new start (except a last ramp-down to 0); lowering it leaves the stages alone. |
| Add stage | Adds a row (30s, same target as the previous row); the cross deletes it. |
| Plan chart | Open models also give the total iterations. For iteration-count models the duration is a ceiling ("up to 10m · 20 VUs"). |
| Threshold for one scenario | filter.scenario in the JSON. |
| Splitting by location | In By location mode the shares are given in percent. Unique and sequential data files are split too, so no two runners use the same row. |
| When a runner is lost | Options → When a runner is lost: Stop the run or Continue with the rest (less load). |
| What a VU does | Runs the steps in order, waits for each answer, pauses for any think time and starts again from the top. |
| Apdex target | Options → Apdex target (T), options.apdexT in JSON; a step's own apdexT overrides the test's. Satisfied scores 1, tolerating ½, frustrated 0. |
| Stage measuring | In a ramping model each stages row is a stage, measured on its own (at most 30; stages under 5 s join the next). |
| Threshold expression | An Add threshold row comes with Response time (ms) and p(95)<500; picking a metric fills Expression with an example. Reading example: "95% of measurements must stay below 300 ms." Scope names: Step: scenario / step name, Location: name. |
| Threshold with no data | Counts as passing during the run; at the end of the run a threshold with no data (its filtered step never ran) fails with "no data". Counters are the exception: with no dropped iteration count<1 passes. |
| How the guard works | Every 5 seconds the controller looks at the last 10 seconds; past a limit it sets a ceiling at 70% of the measured rate and waits at least 10 seconds. When the values stay under 80% of the limits for 30 seconds the ceiling rises by at most 10% of the peak rate per step, never above the planned load. |
| Guard floor and stop | Lowest request rate is the floor. Past a stop limit the run stops; with too little data the guard decides nothing. On capacity and comparison runs the guard only stops; monitor runs have no guard. |
| Server CPU limit | A server with no reading in the last 90 seconds does not count. Without the module the event log says "guard: the host CPU limits are not applied". |
| Breaking point defaults | Start 10, Step 10, Up to 200 iterations/s; Step length 60 s (at least 10, with 10 s transitions between steps); p95 limit 500 ms; Error rate limit 1%; VU limit auto (Up to × 5, 50 to 5,000). The form states the plan ("20 steps, about 24 minutes at most"; at most 60 steps). |
| Breaking point result | When too few VUs, not the system, were the limit, the card says so. Suggestion examples: Step length 60 → 35 s, Step 10 → 16, Up to 200 → 120. Breaking point tests have no warm-up. |
| Warm-up | The charts shade the warm-up grey. If the run ends before the warm-up is over the thresholds fail for lack of data. |