The company I work on compromises to deliver 99% of their service responses in less than 1 second and 99.9% or their responses in less that 2 seconds. How can I make Locust report if this rule has been broken for any of the virtual users?
My first approach would be to make a method in my user (inherited from locust.HttpLocust) that will detect when this event happens and record it in a user-based log. I think this would work but if I have 1000 user it means I will have 1000 different log files.
A second approach would be to create a single event log, but I guess that would require me to deal with asynchronos IO handling. I guess there must be a more pythonesque way.
Locust and performance newbie here. Sorry if my question is misguided.