Performance consumer add batch receive - #9295
Closed
hangc0276 wants to merge 2 commits into
Closed
Conversation
Contributor
Author
|
/pulsarbot run-failure-checks |
hangc0276
force-pushed
the
performanceConsumer_add_batch_receive
branch
from
January 25, 2021 02:45
6546d01 to
5c060e2
Compare
Contributor
Author
|
/pulsarbot run-failure-checks |
3 similar comments
Contributor
Author
|
/pulsarbot run-failure-checks |
Contributor
Author
|
/pulsarbot run-failure-checks |
Contributor
Author
|
/pulsarbot run-failure-checks |
Comment on lines
+354
to
+360
| if (arguments.maxNumMessages > 0 || arguments.maxNumBytes > 0 || arguments.timeout > 0) { | ||
| consumerBuilder.batchReceivePolicy(BatchReceivePolicy.builder() | ||
| .maxNumMessages(arguments.maxNumMessages) | ||
| .maxNumBytes(arguments.maxNumBytes) | ||
| .timeout(arguments.timeout, TimeUnit.MILLISECONDS).build()); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
Only set the batchReceivePolicy does not able to measure the performance of batch-receive. Batch recieve is a separate method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
When run perf consumer, it can't set batch receive policy
Changes
ConsumerStatsRecorderImpllog key name.