logo

... locust.


It's nice to know how much traffic your webapp can handle before it gets this amount of traffic for the first time. A tool that can help you calculate this is called locust.


Episode Notes

You may need multiple terminals to run many workers, but the here's what will run the master;

locust -f benchmark.py --host http://0.0.0.0:8000 -u 2000 -r 50 --master

This is what will spin up a worker.

locust -f benchmark.py --worker --master-bind-host=0.0.0.0 --master-bind-port 8089

Feedback? See an issue? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.