-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1235 from delulu/docs
Update docs for running locust in Step Load Mode
- Loading branch information
Showing
6 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _running-locust-in-step-load-mode: | ||
|
||
================================= | ||
Running Locust in Step Load Mode | ||
================================= | ||
|
||
If you want to monitor your service performance with different user load and probe the max tps that can be achieved, you can run Locust with Step Load enabled with ``--step-load``: | ||
|
||
.. code-block:: console | ||
$ locust -f locust_files/my_locust_file.py --step-load | ||
Options | ||
======= | ||
|
||
``--step-load`` | ||
------------ | ||
|
||
Enable Step Load mode to monitor how performance metrics varies when user load increases. | ||
|
||
|
||
``--step-clients`` | ||
----------- | ||
|
||
Client count to increase by step in Step Load mode. Only used together with ``--step-load``. | ||
|
||
|
||
``--step-time`` | ||
------------------------- | ||
|
||
Step duration in Step Load mode, e.g. (300s, 20m, 3h, 1h30m, etc.). Only used together with ``--step-load``. | ||
|
||
|
||
Running Locust in step load mode without the web UI | ||
--------------------------------- | ||
|
||
If you want to run Locust in step load mode without the web UI, you can do that with ``--step-clients`` and ``--step-time``: | ||
|
||
.. code-block:: console | ||
$ locust -f --no-web -c 1000 -r 100 --run-time 1h30m --step-load --step-clients 300 --step-time 20m | ||
Locust will swarm the clients by step and shutdown once the time is up. | ||
|
||
|
||
Running Locust distributed in step load mode | ||
--------------------------------------------- | ||
|
||
If you want to :ref:`run Locust distributed <running-locust-distributed>` in step load mode, | ||
you should specify the ``--step-load`` option when starting the master node, to swarm locusts by step. It will then show the ``--step-cients`` option and ``--step-time`` option in Locust UI. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters