compression.lz4.level — Kafka Broker Configuration
The compression level to use if compression.type is set to lz4.
Description
The compression level to use if compression.type is set to lz4.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 3.8 | 9 |
| 3.9 | 9 |
| 4.0 | 9 |
| 4.1 | 9 |
| 4.2 | 9 |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| producer / throughput | 1 | LZ4 level 9 is the maximum compression but 6-8x slower than level 1; level 1 still achieves 70-80% of the compression ratio at >400MB/s throughput, optimal for high-throughput pipelines. |
Related Configs
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.