question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locust distributed noweb does not honour --num-request option

See original GitHub issue

Description 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)

  1. 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
  2. Start each slave
  3. Wait for the number of requests to reach the max number specified in step 1
  4. Observe the number of requests exceed the number of requests specified

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cgoldbergcommented, Dec 11, 2017

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.

0reactions
thomas-phillips-nzcommented, Mar 23, 2018

@emamurho Not the right place to ask that question.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found