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

Num of request being made doesnt match with the settings. #29

Closed
gouseferoz opened this issue Apr 2, 2020 · 2 comments
Closed

Num of request being made doesnt match with the settings. #29

gouseferoz opened this issue Apr 2, 2020 · 2 comments

Comments

@gouseferoz
Copy link

Hi,

I was running my invokust with the below settings,

settings = invokust.create_settings(
    classes=[WebsiteUser],
    host='https://google.com',
    num_clients=1,
    hatch_rate=1,
    run_time='10s'
)

WIth the above settings i should see 10 requests being made, as the hatch_rate is 1 and time limit is 10s.

But i see 51 requests being made in this 10s duration.

{
  "requests": {
    "GET_/": {
      "request_type": "GET",
      "num_requests": 51,
      "min_response_time": 139.55307006835938,
      "median_response_time": 180,
@FutureSharks
Copy link
Owner

Hi @gouseferoz, hatch rate is not related to requests directly. This is how many clients are started per second. How many requests your client makes will be defined in your load test although it's not exact.

Here's some doc to help: https://docs.locust.io/en/stable/api.html#module-locust.wait_time

@FutureSharks
Copy link
Owner

Closing as no reply.

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

2 participants