liangyepianzhou opened a new pull request #11933:
URL: https://github.com/apache/pulsar/pull/11933
<!--
### Contribution Checklist
- Name the pull request in the form "[Issue XYZ][component] Title of the
pull request", where *XYZ* should be replaced by the actual issue number.
Skip *Issue XYZ* if there is no associated github issue for this pull
request.
Skip *component* if you are unsure about which is the best component.
E.g. `[docs] Fix typo in produce method`.
- Fill out the template below to describe the changes contributed by the
pull request. That will give reviewers the context they need to do the review.
- Each pull request should address only one issue, not mix up code from
multiple issues.
- Each commit in the pull request has a meaningful commit message
- Once all items of the checklist are addressed, remove the above text and
this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
-->
Master Issue: #https://github.com/apache/pulsar/issues/11765
### Motivation
- When opening a transaction, what is the delay and rate of pulsar sending
and consuming messages?
- How does the granularity of the transaction affect the rate at which
pulsar produces or consumes messages
- Is the rate of abort and commit transactions different
- Try to keep the functions of ordinary produce perfand consume perf as
much as possible
### Modifications
Add PerformanceTransaction.Class
- According to the number of topics set by the user, each topic starts a
thread to execute a number of transactions asynchronously.
- If there is a preset transaction value, the production or consumption of
this topic is terminated after the corresponding number of transactions is
executed, and the production and consumption of all topics are summed up. After
the consumption ends, the main thread ends.
- Each consumer can have multiple subscriptions, but each subscription has
only one consumer. In order to better compare the rate of production and
consumption.
### Verifying this change
Not yet
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (yes / no)
- The public API: (yes / no)
- The schema: (yes / no / don't know)
- The default values of configurations: (yes / no)
- The wire protocol: (yes / no)
- The rest endpoints: (yes / no)
- The admin cli options: (yes / no)
- Anything that affects deployment: (yes / no / don't know)
### Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
- [ ] doc-required
(If you need help on updating docs, create a doc issue)
- [ ] no-need-doc
(Please explain why)
- [ ] doc
(If this PR contains doc changes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]