Traffic Generators: Difference between revisions
Content added Content deleted
Line 105: | Line 105: | ||
*To generate significant load it is almost always necessary to run it in distributed mode. |
*To generate significant load it is almost always necessary to run it in distributed mode. |
||
*Master server do not simulate any user itself. |
|||
*For this we have to start one or more slaves using –slave flag |
|||
*Both the master and each slave machine, must have a copy of the locust test scripts when running Locust distributed. |
|||
*Run below command on each slave nodes as well |
|||
⚫ | |||
Start “master” node: |
|||
locust --host=http://somedomain.io --master |
locust --host=http://somedomain.io --master |
||
Then start any “slave” nodes, giving them a reference to the master node: |
Then start any “slave” nodes, giving them a reference to the master node: |
||
⚫ | |||
locust --host=http://somedomain.io --slave --master-host=192.168.10.100 |
locust --host=http://somedomain.io --slave --master-host=192.168.10.100 |
||