Running Locust in Step Load Mode¶
If you want to monitor your service performance with different user load and probe the max tps that can be achieved, you can run Locust with Step Load enabled with
$ locust -f locust_files/my_locust_file.py --step-load
Enable Step Load mode to monitor how performance metrics varies when user load increases.
Client count to increase by step in Step Load mode. Only used together with
Step duration in Step Load mode, e.g. (300s, 20m, 3h, 1h30m, etc.). Only used together with
Running Locust in step load mode without the web UI¶
If you want to run Locust in step load mode without the web UI, you can do that with
$ locust -f --headless -u 1000 -r 100 --run-time 1h30m --step-load --step-clients 300 --step-time 20m
Locust will swarm the clients by step and shutdown once the time is up.