From eaccb41d599b5e825ec2df45c6c5a7d1f3d2d1f6 Mon Sep 17 00:00:00 2001 From: vkuehn Date: Mon, 18 Nov 2024 17:37:47 +0100 Subject: [PATCH 1/3] Update configuration.rst to show minimalistic config example --- docs/configuration.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/configuration.rst b/docs/configuration.rst index 701594a1f5..f201a1ba7e 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -55,6 +55,22 @@ You can specify an additional file using the ``--config`` flag. $ locust --config custom_config.conf +Here's a minimalistic example of the configuration file supported by Locust: + +No Options are selected which would make Locust run e.g. headless or distributed. +Have a look later in this article for :ref:`All available configuration options` + +locust.conf +-------------- + +.. code-block:: ini + + locustfile = locust_files/my_locust_file.py + host = https://target-system + users = 1 + spawn-rate = + run-time = 1m + Here's a quick example of the configuration files supported by Locust: locust.conf From fa9361adf71e62fc2572d139aed44ae852535dc2 Mon Sep 17 00:00:00 2001 From: vkuehn Date: Tue, 19 Nov 2024 09:13:32 +0100 Subject: [PATCH 2/3] mention headless --- docs/configuration.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index f201a1ba7e..88f24bb212 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -66,10 +66,11 @@ locust.conf .. code-block:: ini locustfile = locust_files/my_locust_file.py + headless = true host = https://target-system - users = 1 - spawn-rate = run-time = 1m + spawn-rate = + users = 1 Here's a quick example of the configuration files supported by Locust: From c2bf0a672b28c03623103e411a56ada96a538699 Mon Sep 17 00:00:00 2001 From: vkuehn Date: Tue, 19 Nov 2024 13:16:55 +0100 Subject: [PATCH 3/3] remove confusing sentence --- docs/configuration.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 88f24bb212..abb1b99046 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -57,7 +57,6 @@ You can specify an additional file using the ``--config`` flag. Here's a minimalistic example of the configuration file supported by Locust: -No Options are selected which would make Locust run e.g. headless or distributed. Have a look later in this article for :ref:`All available configuration options` locust.conf