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.

Feature request: Stepped hatch rate

See original GitHub issue

With a constantly increasing load due to a constant hatch rate, the server doesn’t have time to steady-state and produce stable statistics.

I would love to be able to specify a locust population that:

  • increases to a certain level (at the specified hatch rate),
  • remains at that level for a specified time,
  • increases to the next level,
  • remains at that level for a specified time,
  • and so on until the specified population is reached.

I think you would need two more parameters, in addition to hatch rate and number of locusts: population_step and time_between_steps.

It would make the population grow like this:

|            _________   _
|        ___/            _|  population step
|    ___/
|___/_______________

     |__| time between steps

Instead of like this:

|      __________
|     /
|    /
|___/____________

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
vladbezacommented, Mar 26, 2019

Found out that hatch rate may be set to float value so to get one user per 10 sec hatch rate 0.1 can be set. Maybe it will be helpful for somebody

1reaction
MattFishercommented, Jul 14, 2014

I would like to be able to set up a test run that will gradually increase load until the server hits its limits. At the moment, finding the maximum capacity of the server takes multiple sequential test runs with different numbers of locusts. Stepped hatching would allow a single test run to provide multiple loads in a single unattended test, sequentially, with time for the server to steady-state in-between. For reference, I’m using New Relic to monitor the results so I’m not focussed on extracting the statistics from Locust.

On 12 July 2014 23:59, Joakim Hamrén notifications@github.com wrote:

Hi Matt,

With a constantly increasing load due to a constant hatch rate, the server doesn’t have time to steady-state and produce stable statistics.

This is the reason why Locust will reset the statistics after the hatching phase is completed. I’m not sure why stepped hatching would make any difference in this regard.

— Reply to this email directly or view it on GitHub https://github.com/locustio/locust/issues/168#issuecomment-48812180.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm the Pancham hunter with 12x12km eggs. Here is ... - Reddit
Another 3 days vacation in a row bumps you down to 25%. Even with this, 4x hatching rate, most pokemon have crap stats,...
Read more >
How To Hatch Chicken Eggs Using an Incubator
Step 4: Incubating, Days 1-17​​ The first 17 days you will turn the eggs by hand (if you do not have an automatic...
Read more >
Incubation Guide - My Pet Chicken
Third--to repeat--remember that the average hatch rate for shipped eggs is 50%; it is 80% for eggs that have not shipped. We sometimes...
Read more >
Hatching of parasitic nematode eggs: a crucial step ...
Hatching of parasitic nematode eggs: a crucial step determining ... A notable feature of the phylum is parasitism, which has arisen ...
Read more >
An Introduction to Load Testing | DigitalOcean
Take your maximum request rate from the previous step and cut it in half. Run another test at this new rate and note...
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