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

Stats get corrupted when the number of swarm users reaches the objective #201

Closed
jfacorro opened this issue Sep 25, 2014 · 4 comments
Closed

Comments

@jfacorro
Copy link
Contributor

The following graph was generated with Rickshaw by making periodic requests to http://locust-url/stats/requests/csv. The spike happens when the total amount of users swarmed is reached, in this case 2000.

screen shot 2014-09-25 at 11 24 00 am

It seems that stats are reseted in an inconsistent way which causes the huge change in the average value.

@heyman
Copy link
Member

heyman commented Sep 25, 2014

This is likely due to the stats getting reset when all users has been spawned, in combination with the fact that the average response time is the total average of all requests made. So when the stats are reset the average response increases dramatically due to the fact that all the requests made during the ramp up phase - which probably got a response fast since there were less load on the system - are suddenly no longer accounted for in the average calculation.

For graphing the average response time over time, it would probably make more sense to use the average response time during the last X seconds (similar to Locust's "current reqs/s" which shows the RPS for the last 12 seconds). Currently this is not tracked in Locust, but could definitely be implemented, and it's probably a nice thing to have

@unbalancedparentheses
Copy link

@heyman Do you think it would be possible to resolve this inside locust? I do not think this should be resolved by the graphing code. Locust should provide correct stats. If the ramp up phase throws inadecuate response times, wouldn't it be better to reset all the stats, even the response times during the ramp up?

Thanks in advance and keep up the good work :)

@heyman
Copy link
Member

heyman commented Sep 26, 2014

@unbalancedparentheses The stats are not incorrect, and all the stats are getting reset when the ramp up is complete (that's why the average suddenly jumps up). It's rather a matter of total average response time not being very suitable to be graphed over time.

I would however be open to adding the current average response time to Locust, which would show the average response time during the last X seconds.

@jfacorro
Copy link
Contributor Author

@heyman Thanks for the reply. What would be a good metric to graph over time? Median response time presents the same problem. I guess the only data that could offer a qualitative graph of how good the server is behaving is the percentile one...

@Jahaja Jahaja closed this as completed Dec 6, 2014
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

4 participants