Skip to content

Pace boomer iterations that exit early#544

Closed
Chuang Wang (chuangw6) wants to merge 1 commit into
bench/locust-image-platformfrom
bench/boomer-pace-early-exit
Closed

Pace boomer iterations that exit early#544
Chuang Wang (chuangw6) wants to merge 1 commit into
bench/locust-image-platformfrom
bench/boomer-pace-early-exit

Conversation

@chuangw6

Copy link
Copy Markdown
Collaborator

iterate() only slept after a full resume/ping/suspend cycle. The early returns — startUser failing, resume failing — skipped the wait, and boomer re-enters iterate immediately, so a VU that could not get a worker spun at gRPC round-trip speed.

That is backwards from what you want under load: run more VUs than there are workers and every starved VU hammers ResumeActor at full rate, inflating the reported request counts and adding load to the ateapi that the healthy VUs are waiting on.

Move the wait into a defer so every path pays it.

Stacked on #543.

iterate() only slept after a full resume/ping/suspend cycle. The early
returns -- startUser failing, resume failing -- skipped the wait, and
boomer re-enters iterate immediately, so a VU that could not get a worker
spun at gRPC round-trip speed.

That is exactly backwards from what you want under load. Run more VUs than
there are workers and every starved VU hammers ResumeActor at full rate,
inflating the reported request counts and adding load to the ateapi that
the healthy VUs are waiting on.

Move the wait into a defer so every path pays it.
@chuangw6

Copy link
Copy Markdown
Collaborator Author

Not load-bearing for anything we measured: ResumeActor was 0% fail in every run, so the early-return path never fired. Closing to keep the stack to changes we actually diagnosed.

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

Successfully merging this pull request may close these issues.

1 participant