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: error: no such option: -n #912

Closed
qburst-preethi opened this issue Nov 8, 2018 · 5 comments
Closed

locust: error: no such option: -n #912

qburst-preethi opened this issue Nov 8, 2018 · 5 comments

Comments

@qburst-preethi
Copy link

qburst-preethi commented Nov 8, 2018

Description of issue / feature request

I tried to execute the following command,
"locust -c 10 -r 10 -n 10 --no-web -f locustfile.py"
but, got this error in terminal
"locust: error: no such option: -n"

Environment settings (for bug reports)

  • OS: Ubuntu 16.04
  • Python version:py 2.7.12
  • Locust version: 0.9.0
@qburst-preethi
Copy link
Author

Hey, I found that -n command is not supported in v0.9.0. I used '-t' command to specify the time period. If you want to use -n command, v0.8.0 is needed.

@wenger66
Copy link

why -n command is not support, i found this command is very useful

@cgoldberg
Copy link
Member

we changed it to time based execution

@aldenpeterson-wf
Copy link
Contributor

Adding to what @cgoldberg said, there are a lot of situations where the -n value is not precise too - fundamentally Locust cannot easily guarantee an explicit number of requests.

During startup, when distributed, when shutting down, etc all cause situations where the actual number of requests cannot match -n without significant changes to how Locust worked. This caused questions often why a server would register different numbers of requests, etc.

@rk4n3
Copy link

rk4n3 commented Aug 23, 2019

Please restore this lost functionality - realizing the nature of change/refactor needed, I'd still say its worth it.

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

No branches or pull requests

5 participants