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

What does hatch_rate mean? #1018

Closed
didip opened this issue May 29, 2019 · 2 comments
Closed

What does hatch_rate mean? #1018

didip opened this issue May 29, 2019 · 2 comments

Comments

@didip
Copy link

didip commented May 29, 2019

Description of issue

I think I am missing something really obvious here. I thought hatch_rate means number of coroutines launched per second. But from the UI, it seems like Locust is launching number of "users" at much lower rate.

Expected behavior

If I set hatch_rate to 2000, I expect the UI to reflect spawning 2000 users per second.

Actual behavior

Number of new users spawned is much less than 2000.

Environment settings

  • OS: CentOS 6.9
  • Python version: 2.7.13
  • Locust version: Latest. I am only running a single instance. There are plenty of file descriptors and CPU on the host.

Steps to reproduce (for bug reports)

Using the UI, enter 2000 on "Numbers of users to simulate" field and enter 2000 on "Hatch rate" field.

The locustfile.py is super basic, only hitting "/" endpoint.

@huangwj122
Copy link

I have the same confusion

@cgoldberg
Copy link
Member

hatch rate = number of users to spawn per second.

Note: if your system under test can't handle that arrival rate, it may queue requests/responses which would appear like users are spawned slower.

Without more information, there is nothing actionable here.. please use the Slack channel for general questions.

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

3 participants