Running a test#
Run › Start a run: pick the server and the profile, then Preflight, then Start.

Under the form, a line describes the profile you picked: its model, sessions or rate, protocols and times.
Preflight#
The preflight reads and checks everything before any load, and changes nothing:
- each address answers as CrushFTP, with the TLS check of the server (and shows a certificate's fingerprint, to pin it);
- a test user can log in on each protocol, and its upload folder is writable;
- the server's limits through the admin API: how many connections an address may open before it is banned (a default CrushFTP server bans an address that opens 100 connections in 10 seconds, 3 for HTTP), sessions per address (100 by default), the account login limits and
max_users; a run that would trip one of them fails here; - the caps against the profile (more sessions per load machine than its cap fails; a cap that holds the rate back warns);
- nothing is left from an earlier run (an unfinished ledger fails, see Safety on production);
- the load machines are connected (a clock more than 2 s off from the controller's is a warning).

A failed check stops the run before it starts, with the reason and what to do (Troubleshooting). With test users CrushTest makes, it checks before making any that no user of those names exists that CrushTest did not make; one that does stops the run and nothing is changed.
Options#
| Option | What it does |
|---|---|
| Compare with | a second server: the run alternates between the two (A B B A ...) for the rounds you ask, so time of day and warm caches fall on both |
| Rounds | how many times the run repeats; Compare uses all of them |
| Tag | a label on the run, for example the version or a setting you changed |
| Load machines | which paired agents take part, and whether this machine does too |
| Dry run | the preflight and the plan only: no user made, no load |
| Scale check | after the run, runs the profile again on the first server with half the load machines, then with all of them: if all of them bring more than 10% more, the load machines were the limit, not the server (needs two load machines or more) |
| Not before / not after | a time window: the run waits for its start, and the agents stop by themselves at the end of the window |
| Confirm | for a server marked production: its name, typed |
While it runs#
The Run page shows the run live: operations a second per kind, MB/s, latency percentiles, errors by kind, the server's CPU and each load machine's own CPU and network. Abort always works and stops every load machine at once.

The charts cover the current run: operations a second, p99 latency, failures per interval, and the CPU of the server and of each load machine. Under them are the preflight of each server and the log.
CrushTest also watches the load machines: when one of them is the limit (its CPU above 75%, work starting late, garbage collection, its local ports or open files nearly used up, its network link above 80%), the run says it was client-bound and why, so its numbers say more about the load machines than about the server. Add load machines (Load machines and monitors).
After the run#
When the job is done, the Run page shows its runs and, for a comparison, the verdict of the second server against the first, with the server settings that differ between them.

CrushTest removes the files the run uploaded and the test users it made, and keeps the results (Results, Compare and Trend). If something could not be removed, the server shows it under left to clean up; Clean up what CrushTest made (in the server's editor) removes it.
From the command line#
crushtest preflight --server prod-sftp --profile "Small files"
crushtest run --server prod-sftp --profile "Small files" --report run.pdf
crushtest run --server v11 --compare v27 --profile "Mixed day" --rounds 4 --report upgrade.pdf
run exits 0 when the run finished with no regression, 1 on a regression, 2 when it failed, was aborted or its preflight failed, so a script or a CI job can use it. More in Command line.