question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--no-reset-stats should be on by default

See original GitHub issue

Please make this on by default. It is what most people will want in a realistic load test.

Case in point. We are gradually hatching about 1000 locusts that all need to authenticate with a login server. We hatch them slowly to avoid overwhelming the login server. After each locust logs in, it immediately starts performing our regular workflow. In our first test runs, we lost the stats that got collected during the hatch because we didn’t know --no-reset-stats existed. Watching your stats reset to 0 is extremely baffling. We had to scour the interweb to learn about this setting, and then spent a few hours figuring out how the switch works in a master/slave scenario

Making this on by default begs the question of how someone would turn it back off if they really do want to reset their stats when the hatch completes. Some options:

  1. Ditch --no-reset-stats and replace it with a switch that has the opposite polarity : --reset-stats-on-hatch-complete
  2. Just let me hook on_hatch_complete and reset the stats on my own if that is the behavior I want. Assumes that I can do this in my locust class or task set.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
heymancommented, Oct 30, 2017

That is, alternative 1. Turn it off by default, and add a --reset-stats flag.

3reactions
bubbaksmithcommented, Oct 30, 2017

The most confusion/frustrating thing is that no where in the current documentation does it mention that all your data will reset after all Locust have been hatched.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inference of Locust result - python - Stack Overflow
Because you are using --no-reset-stats this means that any of the requests made in the hatching period will count towards your total, even ......
Read more >
Changelog Highlights — Locust 2.14.0 documentation
Use 1 as default for user count and spawn rate in web UI start form ... Added --no-reset-stats option for controling if the...
Read more >
Locust - Read the Docs
Locust is an easy-to-use, distributed, user load testing tool. It is intended for load-testing web sites (or other systems).
Read more >
Isolated - Scalable Performance Testing: Locust in Dockers
Locust will also use this port + 1, so by default the ... --no-reset-stats Do not reset statistics once hatching has been. completed....
Read more >
Improvements to Goose - The Locust-inspired Load Testing ...
With Goose, a single process can use all available CPU cores. ... Default to resetting metrics, disable with --no-reset-stats , display ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found