Locust distributed noweb does not honour --num-request option
See original GitHub issueDescription of issue / feature request
When running Locust distributed, with the master in --no-web, the “Number of requests to perform” (-n NUM_REQUESTS, --num-request=NUM_REQUESTS
) option is not honoured.
Expected behavior
After sending the specified number of requests, the master should stop all connected slaves, then print out its stats and exit
Actual behavior
Everything keeps running right past the specified requests limit
Environment settings (for bug reports)
- OS: Linux (Debian Stretch)
- Python version: 2.7.13
- Locust version: 0.8.1
Steps to reproduce (for bug reports)
- Start the master with the --no-web and specify number of slaves to expect, number of users (clients), hatch rate and max number of requests
- Start each slave
- Wait for the number of requests to reach the max number specified in step 1
- Observe the number of requests exceed the number of requests specified
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Source - GitHub
... Locust distributed noweb does not honour --num-request option [\#682](https://github.com/locustio/locust/issues/682) - Locust pure python RPC not ...
Read more >Running Locust without the web UI
If you want to run Locust distributed without the web UI, you should specify the --expect-slaves option when starting the master node, to...
Read more >Locust : How to make locust run for a specific amount of time
This answer is out of date. Locust now has a -t / --run-time parameter for specifying run time.
Read more >Globally distributed load tests in Azure with Locust - Medium
Locust can be used on a single machine as well as distributed using Docker containers. We are going for the container option and...
Read more >Problem with running Locust with distributed mode.
We are trying to run Locust with distributed mode. ... 21:36:36 ERROR: TypeError: argument of type 'NoneType' is not iterable
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
tests are now based on time rather than number of requests.
version 0.8.1 removed the
--num-requests
/-n
option in favor of--run-time
/-t
This change was introduced in 0.8.1, but the docs state that it is changed in 0.9. We will fix the docs and also add this to the changelog.
@emamurho Not the right place to ask that question.