Traffic Generators: Difference between revisions

Line 117:
 
You will only need to use the one admin interface provided my the master. It should report whether the slaves are correctly setup and activey serving traffic.
 
 
== Distributed Mode ==
 
Running locally is fine for basic testing and getting started with Locust, but most applications will not receive a significant load if you’re just running it from your local machine. It’s almost always necessary to run it in distributed mode. This is easy to do with a couple AWS nodes.
 
After installing Locust and moving your locustfile.py to all nodes, you can start the “master” node:
locust --host=http://localhost:5000 --master
 
Then start any “slave” nodes, giving them a reference to the master node:
locust --host=http://localhost:5000 --slave\
--master-host=192.168.10.100
 
= Slowhttptest =