Skip to content

Commit

Permalink
Warn if spawn rate is too high. Adresses #1174 for example.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 30, 2019
1 parent 6f946dc commit ca09a9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ def start_hatching(self, locust_count, hatch_rate):

logger.info("Sending hatch jobs of %d locusts and %.2f hatch rate to %d ready clients" % (slave_num_clients, slave_hatch_rate, num_slaves))

if slave_hatch_rate > 100:
logger.warning("Your selected hatch rate is very high (>100/slave), and this is known to sometimes cause issues. Do you really need to ramp up that fast?")

if self.state != STATE_RUNNING and self.state != STATE_HATCHING:
self.stats.clear_all()
self.exceptions = {}
Expand Down

0 comments on commit ca09a9b

Please sign in to comment.