Skip to content

Replace linear pacer with stepped pacer#27

Merged
cjonas9 merged 11 commits intodevfrom
stepped-pacer
Apr 10, 2026
Merged

Replace linear pacer with stepped pacer#27
cjonas9 merged 11 commits intodevfrom
stepped-pacer

Conversation

@cjonas9
Copy link
Copy Markdown
Contributor

@cjonas9 cjonas9 commented Apr 1, 2026

What

Replaces Blaster's linear pacer with a stepped pacer. Endpoint blasts with a ramp up phase will now step through various RPS levels every --step-interval seconds (default of 5s, but whole number multiples of 5s are also accepted).
For added context, Blaster currently supports a linear and constant pacer (i.e. functions that determine the request-sending patterns, the former increasing RPS from 1 to target_rps over --ramp-up time, and the latter sending a constant RPS of target_rps for the duration of the run).

Why

The linear/constant pacer suffers from the following limitations:

  • the target RPS displayed in live logs is an optimistic estimate of the RPS (the logs display the current RPS at five second intervals, but the statistics are for the previous responses, which were assuredly made when the RPS was less than it currently is).
  • not straightforward to determine RPS level where the RPC buckles at if RPS is constantly being increased.
    The stepped pacer fixes this by stepping through RPS levels to see how an RPC performs when being hit with some set amount of load.

Known Limitations

N/A, other than removing the linear pacer functionality.

@cjonas9 cjonas9 marked this pull request as ready for review April 2, 2026 06:12
Base automatically changed from 24-add-start-rps-toml-option to dev April 3, 2026 17:04
Copy link
Copy Markdown

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coupla comments ⬇️ but otherwise LGTM!

Comment thread internal/config/configs.go
Comment thread internal/run/engine/pacer.go Outdated
Comment thread internal/run/engine/pacer.go Outdated
Comment thread internal/config/configs.go
Comment thread internal/config/configs.go
@cjonas9 cjonas9 merged commit 0ebb242 into dev Apr 10, 2026
2 checks passed
@cjonas9 cjonas9 deleted the stepped-pacer branch April 10, 2026 17:47
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.

2 participants