After I launch Locust without the web UI:
$ locust -f locust_files/my_locust_file.py --no-web -c 1000 -r 100
is it possible to change the number of users or hatch rate programmatically during the execution?
Warning: unsupported method
Start locust in the usual way and investigate the calls made by the browser to the endpoints exposed by locust.
E.g. the call to update the user count is a simple POST to the /swarm endpoint with the desired locust count and hatch rate:
curl "http://localhost:8089/swarm" -X POST -H "Content-Type: application/x-www-form-urlencoded" --data "locust_count=10&hatch_rate=1"
In Locust, can I modify the number of users and hatch rate after I start the test?