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

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

Closed
thomas-phillips-nz opened this issue Nov 13, 2017 · 6 comments
Closed

Comments

@thomas-phillips-nz
Copy link

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
@c4po
Copy link

c4po commented Dec 11, 2017

+1
same issue here.

@cgoldberg
Copy link
Member

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.

@thomas-phillips-nz
Copy link
Author

I had a look at the code for v0.8.1 (at the 0.8.1 tag) and there is no option for --run-time/-t. Maybe it was added in 0.9, or at least after 0.8.1?

@cgoldberg
Copy link
Member

@thomas-phillips-nz
You can install from master to get the --run-time option

@emamurho
Copy link

emamurho commented Mar 22, 2018

how can locust be used to a load test for an asynchronous service :) ?

@thomas-phillips-nz
Copy link
Author

@emamurho Not the right place to ask that question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants