-
Notifications
You must be signed in to change notification settings - Fork 3k
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
num-requests bug #512
Comments
This happens with "Locust 0.7.5" |
My guess is that it somehow happens because the 200 requests are reached before Locust has finished spawning users (since it takes 8 seconds to spawn 80 users with a hatch rate of 10). I'm leaning towards removing the --num-requests feature all together, and instead replacing it with the ability to specify a time limit. |
+1 for time limit |
@heyman Although you wouldn't be able to configure it at the individual locust level, couldn't you just prefix the command with |
@seangerhardt-wf Yeah, I think it would only make sense to have it work with |
I guess I personally prefer the OS approach since it will mean less code and make locust less prone to bugs. |
@heyman - I am running a test with number of clients=100 hatch rate=10 --no-web turned on. My test runs for a longer duration when --num-request is not provided It would be really great if i get some information on this as i am unable to get it from documentation. |
"Fixed" by #656 |
@heyman : I am using Locust 0.11 version. I am using no web-ui with below command because I want to stop the tests after specific number of requests. locust -f locustfile.py --no-web --clients=5 --hatch-rate=1 --num-request=5 but it is giving me error : " locust: error: no such option: --num-request" It would be helpful if you help me in following scenario "how to stop the test after specific number of requests reached" |
@nityasantoshi that was removed here - #656 |
@aldenpeterson-wf Is there any way to stop the execution after specific number of requests are done? |
Is there any way to stop the execution after a specific number of requests are done? |
No. For more info on the rationale: |
locust behaves strangely sometimes when using "num-requests". For some reason the test does not stop after num-request is reached, but it starts again from the beginning (with fewer clients).
My guess is that all clients are not created when the num-request is reached.
The text was updated successfully, but these errors were encountered: