max.message.bytes — Kafka topic Configuration
The largest record batch size allowed by Kafka (after compression if compression is enabled). If this is increased and there are consumers older than 0.
Description
The largest record batch size allowed by Kafka (after compression if compression is enabled). If this is increased and there are consumers older than 0.10.2, the consumers' fetch size must also be increased so that they can fetch record batches this large. In the latest message format version, records are always grouped into batches for efficiency. In previous message format versions, uncompressed records are not grouped into batches and this limit only applies to a single record in that case.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.11.0 | 1000012 |
| 1.0 | 1000012 |
| 1.1 | 1000012 |
| 2.0 | 1000012 |
| 2.1 | 1000012 |
| 2.2 | 1000012 |
| 2.3 | 1000012 |
| 2.4 | 1000012 |
| 2.5 | 1048588 |
| 2.6 | 1048588 |
| 2.7 | 1048588 |
| 2.8 | 1048588 |
| 3.0 | 1048588 |
| 3.1 | 1048588 |
| 3.2 | 1048588 |
| 3.3 | 1048588 |
| 3.4 | 1048588 |
| 3.5 | 1048588 |
| 3.6 | 1048588 |
| 3.7 | 1048588 |
| 3.8 | 1048588 |
| 3.9 | 1048588 |
| 4.0 | 1048588 |
| 4.1 | 1048588 |
| 4.2 | 1048588 |
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.