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

Configurable compression level #1042

Closed
bobrik opened this issue Feb 10, 2018 · 1 comment
Closed

Configurable compression level #1042

bobrik opened this issue Feb 10, 2018 · 1 comment

Comments

@bobrik
Copy link
Contributor

bobrik commented Feb 10, 2018

Currently there's no way to configure compression level for Gzip. We also want to add Zstd support to Kafka itself, where there are many compression levels:

There should be a setting to set compression level in producer config. I'm not sure whether we want separate config per codec (CompressionLevelGZIP, CompressionLevelZSTD) or one setting to rule them all (CompressionLevel). The former seems more flexible.

@eapache
Copy link
Contributor

eapache commented Feb 12, 2018

Separate config does feel more flexible, but given that gzip, zstd, and all other compression codecs I can think of specify levels in simple integers, a single CompressionLevel seems sufficient? There's currently no way to specify multiple compression codecs in a single config, so there should never be any ambiguity.

eapache added a commit that referenced this issue Feb 12, 2018
Add support for compression levels, closes #1042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants