Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add host cli arg to quickstart #250

Merged
merged 1 commit into from
Mar 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ Start Locust
To run Locust with the above locust file, if it was named *locustfile.py*, we could run
(in the same directory as locustfile.py)::

locust
locust --host=http://example.com

or if the locust file is located elsewhere we could run::

locust -f ../locust_files/my_locust_file.py
locust -f ../locust_files/my_locust_file.py --host=http://example.com

To run Locust distributed across multiple processes we would start a master process by specifying --master::

locust -f ../locust_files/my_locust_file.py --master
locust -f ../locust_files/my_locust_file.py --master --host=http://example.com

and then we would start an arbitrary number of slave processes::

locust -f ../locust_files/my_locust_file.py --slave
locust -f ../locust_files/my_locust_file.py --slave --host=http://example.com

If we want to run locust distributed on multiple machines we would also have to specify the master host when
starting the slaves (this is not needed when running locust distributed on a single machine, since the master
host defaults to 127.0.0.1)::

locust -f ../locust_files/my_locust_file.py --slave --master-host=192.168.0.100
locust -f ../locust_files/my_locust_file.py --slave --master-host=192.168.0.100 --host=http://example.com

.. note::

Expand Down