Load Runs

1file
2figures
3min read
Sheet 23 of 47 · Explore

Filesreport.json

Filereport.jsonA load run puts many bots on the server at once, all doing one thing, and measures what it costs: TPS, MSPT, ping, and how long a menu takes to open with everyone clicking.

A load run in progress, with the live numbers and the TPS and tick time chart.
The Load page during a run: 20.0 TPS with 4 of 4 bots on, live tiles for MSPT, ping, GUI open p95 and errors, and a TPS chart

Run one

The Load page starts runs and shows the live numbers and a chart. Over HTTP (the examples assume --api-port 8767, the default is 8766):

curl -H "X-ITT-Token: $TOKEN" "localhost:8767/load/start?count=40&actions=menu&cmd=/zombies&duration=100s&interval=1500ms"
curl "localhost:8767/load/status"
curl "localhost:8767/load/report?format=html" > report.html

Every bot joins from pattern, stagger ms apart, then acts every interval (give or take 20 percent) until duration is up. The bots are removed at the end.

What the bots do

actions is a preset or a scenario name.

actionsWhat each bot does
idleStays online
chatSends a line
menuRuns cmd and measures how long the window takes to open
walkWalks a few blocks
mixedRotates menu, chat and walk
a scenario nameRuns that scenario once per round, with the bot swapped in

Server numbers

health picks where TPS and MSPT come from:

healthSource
autoAsks the managed server's console for tps and mspt every 5 seconds, and spark tps if those give nothing
bot:<name>Asks through an op bot's chat instead
noneSkips it

TPS as the bots see it (from the world time packets) and keep-alive ping are always there.

The report

Join success rate and join times, GUI open p50, p95 and max, actions and errors, and TPS, MSPT and ping over time. Server errors the watcher saw during the run are kept in it too.

Filereport.jsonConfig keyreport.htmlreport.json and report.html land in load/<job> in the data dir. The page is one file with inline SVG charts and nothing loaded from outside. spark=1 adds a profiler report, see spark Reports.

Endpoints

EndpointParametersReturns
/load/startcount, pattern=Load_{n}, actions, cmd, duration=60s, interval=3s, stagger=250, health=auto, host, port{"job":"load-1",...}
/load/statusjob, default the latestprogress and live numbers
/load/stopjobends the run early, the report is still written
/load/reportjob, format=json|htmlthe finished report
/jobsevery crawl and load job

spark reports

Load and fuzz runs take spark=1. The tool then profiles the server with spark for the length of the run and puts the links in the run's report.

What it runs

WhenCommands
Before the runspark tps, spark profiler start
After the runspark profiler stop, spark tps, spark healthreport --memory --upload

The report gets the profiler and health report links and both TPS readings.

curl "localhost:8767/load/start?count=40&actions=menu&cmd=/zombies&duration=100s&spark=1"

Options

ParameterMeaning
spark=1Profile around the run
sparkVia=consoleSend the commands to the managed server's console. The default
sparkVia=bot:<name>Send them through an op bot, on any server
sparkTimeout=<seconds>Start the profiler with --timeout
sparkHealth=0Skip the health report
The managed server's console, where spark commands go by default.
The Console page showing a Paper server answering mspt and spark health with TPS, tick durations, CPU, memory and disk usage

Without spark

Without spark, or without permission, the report says so and the run goes on. Paper 1.21 bundles spark, so it is there on a plain Paper server.

Around anything else

/spark/start and /spark/stop run the same commands around anything else. SparkService is what the other runs use.

The GUI Fuzzer takes the same spark=1.

For hours of play instead of one thing hammered, see Soak Runs.

Loading the index

Enter openUp Down moveEsc close