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

Perform producer compression from IO threads #7733

Merged
merged 6 commits into from
Aug 4, 2020

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Aug 3, 2020

Motivation

Currently, all the assembly of batches and compression is done in timer thread. When publishing at high throughput with compression enabled, it's easy that this thread becomes the bottleneck.

Since we're already using IO threads to do decompression of messages in the consumer, we should use IO threads when compressing too.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Aug 3, 2020
@merlimat merlimat added this to the 2.7.0 milestone Aug 3, 2020
@merlimat merlimat self-assigned this Aug 3, 2020
@merlimat merlimat merged commit 7bf4549 into apache:master Aug 4, 2020
@merlimat merlimat deleted the compression-thread branch August 5, 2020 16:23
jerrypeng pushed a commit to jerrypeng/incubator-pulsar that referenced this pull request Aug 14, 2020
* Added `zookeeper.snapshot.trust.empty=true` for ZK 3.5 upgrade

* Perform producer compression from IO threads

Co-authored-by: Sanjeev Kulkarni <sanjeevk@splunk.com>
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
* Added `zookeeper.snapshot.trust.empty=true` for ZK 3.5 upgrade

* Perform producer compression from IO threads

Co-authored-by: Sanjeev Kulkarni <sanjeevk@splunk.com>
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
* Added `zookeeper.snapshot.trust.empty=true` for ZK 3.5 upgrade

* Perform producer compression from IO threads

Co-authored-by: Sanjeev Kulkarni <sanjeevk@splunk.com>
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
* Added `zookeeper.snapshot.trust.empty=true` for ZK 3.5 upgrade

* Perform producer compression from IO threads

Co-authored-by: Sanjeev Kulkarni <sanjeevk@splunk.com>
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
* Added `zookeeper.snapshot.trust.empty=true` for ZK 3.5 upgrade

* Perform producer compression from IO threads

Co-authored-by: Sanjeev Kulkarni <sanjeevk@splunk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants