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
RPS is not increasing as the number of users #2624
Comments
Response times are high, you have reached the limit of the system you are testing. Try a slower ramp up to validate if response times are increasing as new users are added. https://github.com/locustio/locust/wiki/FAQ#increase-my-request-raterps |
Hi @cyberw thank you for your kind reply. I have done three experiments to validate if the limit of gRPC server has reached the limit. For the first experiment, on the server, I return the response immediately receiving the request. The following image displays configuration and result. For the second experiment, on the server, I return the response after waiting for one second after receiving the request. The following image displays the configuration and result. For the third one, on the server, I return the response after waiting for two seconds after receiving the request. The following image displays the configuration and result. My server has 800 threads listening. My expectation is around 400 RPS for 1 second and 200 RPS for 2 seconds delay. If the threads are sufficient, the latency of the server should be independent from the throughput of that, but I suppose they are coupled in Locust, therefore, I think there is something wrong with it in my humble opinion. Or is there a way that I can set strict RPS without users please? |
It is really hard for me to know what the error might be. Did you try running locust distributed to see if there is any difference? Try running with a slower ramp up to see if that shows when the limit is reached more clearly.
You can use a high number of users and combine it with constant_pacing/constant_ips wait_time to constrain the RPS, but there probably wont be a difference, because something is limiting your requests. Adding more users is likely to just make the queue longer or eventually give errors because your system/whatever is limiting you cant keep up. |
But most importantly, check your server logs to confirm what it is doing. Can you get it to log response times as well? With no more info to go on, I still think it is likely that the limitation is not in locust. |
@cyberw Yes, I can get the log response time. May I ask is that enough? |
Well, you'll want to see if the logged response times match then ones in locust. If they do, then you problem is most certainly on your server side and we should close this ticket, because its not a locust issue :) |
This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself! |
Prerequisites
Description
I am using Locust for load test of gRPC with web UI. I set the "number of users (peak concurrency)" to be 100 in the hope that the request per second could reach 100. However, not matter what the number of users I set, the RPS seems never change.
Command line
locust -f src/content_moderation_ocr/locustfile.py
Locustfile contents
LocustFile: src/cm_ocr/locustfile.py
The text was updated successfully, but these errors were encountered: