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

Backport JetStream benchmarks improvements to 2.9.x #4644

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

mprimi
Copy link
Contributor

@mprimi mprimi commented Oct 10, 2023

Backporting of JetStream benchmarks that landed in main (post 2.10.x) and dev branches back to 2.9.

These improvements are to the benchmark code and not specific to 2.10.
Therefore it seems appropriate to back port them, so that benchmarks more accurately compare 2.9 to 2.10 and beyond.

Notice that I cherry-picked the original commits to preserve attribution (and make review easier). However because the back porting can be considered an 'atomic' change, and these have already been reviewed I could also squash into a single commit.

Signed-off-by: Marco Primi marco@synadia.com

ReubenMathew and others added 6 commits October 10, 2023 11:28
Refactors BenchmarkJetStream(Consume|Publish) and BenchmarkJetStreamKV benchmarks to connect to stream leader for benchmark cases where cluster size is greater than 1.

Also, BenchmarkJetStreamKV now only targets a single bucket (B=1).

Signed-off-by: Reuben Ninan <reuben@nats.io>
Handle error condition during stream setup that was resulting in failed 
runs.
Simplify logic and make sure no more than `asyncWindow` messages are 
ever in-flight
@mprimi mprimi marked this pull request as ready for review October 10, 2023 18:57
@mprimi mprimi requested a review from a team as a code owner October 10, 2023 18:57
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@wallyqs wallyqs merged commit 770cf2e into nats-io:release/v2.9.23 Oct 10, 2023
1 check passed
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.

3 participants