Load machines and monitors#
Why more load machines#
A CrushMFT 27 server on good hardware handles more than one load machine can make. When the load machines are the limit, the results measure them, not the server; CrushTest says so (the run is client-bound). Add load agents until it no longer is.
Every run's results list its load machines, and how many of their measured intervals were limited (How it works):

A load agent#
On each extra machine, unzip CrushTest and run:
./crushtest.sh agent --allow server:22,server:443
(or crushtest_init.sh install for a Linux service, see Install). It prints a pairing code. In the controller: Agents › Pair an agent: a name, the machine's address, port 47920, and the code, then Pair.

The Agents page then lists it, with its cores, its clock offset from the controller, and the addresses it allows. This machine is the load machine built into the controller.

- The link between the controller and an agent is encrypted with the pairing code. Without the code nobody can give the agent orders.
--new-codemakes a new code (pair again afterwards). - The agent takes orders only from a licensed controller. It checks the controller's license each time the controller connects.
--allow host:port,...limits where the agent may send load; anything else is refused.- Open the agent's port (47920) only to the CrushTest controller.
- Caps and the dead-man switch. Every agent keeps to the profile's caps, and stops its load by itself when the controller goes quiet.
- An agent needs no license. It sends nothing but the load to your servers and its measurements to the controller.
A monitor of the server#
A monitor runs on the server's own machine and samples the CrushFTP process: its CPU time, and the free space of the disk the server writes to.
./crushtest.sh monitor --monitor-find CrushFTP --monitor-disk /var/opt/CrushFTP/data
Pair it in Agents as monitor of that server (port 47921).
- Exact server CPU per operation. CrushMFT 27 reports its own CPU time to the admin API, so it needs no monitor. For CrushFTP 11 (and older CrushMFT 27 builds) a monitor gives the same number; without either, CrushTest shows the server's CPU % only.
- The disk guard. With
--monitor-disk, the guard stops a run when the server's disk has less than 2 GB free. Without a monitor, only a server that has a "Disk Space Below Threshold" alert reports its free space.
Calibrate#
crushtest calibrate --server S --protocol sftp raises the rate of small uploads step by step until the load machines are the limit, and prints and saves the highest rate they held: how far this load setup goes.
Scale check#
Scale-out check on the Run page runs the profile again after the run, with half the load machines and then with all of them (it needs at least two). If all of them bring more than 10% more, the load machines were the limit: the job says client-bound and how much more they brought; otherwise server-bound.