Skip to content

Conversation

@hangc0276
Copy link
Contributor

Motivation

When run perf consumer, it can't set batch receive policy

Changes

  1. add batch receive policy for perf consumer
  2. correct ConsumerStatsRecorderImpl log key name.

@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@hangc0276 hangc0276 closed this Jan 25, 2021
@hangc0276 hangc0276 reopened this Jan 25, 2021
@hangc0276 hangc0276 force-pushed the performanceConsumer_add_batch_receive branch from 6546d01 to 5c060e2 Compare January 25, 2021 02:45
@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

3 similar comments
@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@hangc0276
Copy link
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());
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Only set the batchReceivePolicy does not able to measure the performance of batch-receive. Batch recieve is a separate method.

@hangc0276 hangc0276 closed this Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants