replica.fetch.max.bytes — Kafka Broker Configuration
The number of bytes of messages to attempt to fetch for each partition. This is not an absolute maximum, if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made
Description
The number of bytes of messages to attempt to fetch for each partition. This is not an absolute maximum, if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made. The maximum record batch size accepted by the broker is defined via message.max.bytes (broker config) or max.message.bytes (topic config).
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.8.0 | 1024 * 1024 |
| Broker | 0.8.1 | 1024 * 1024 |
| Broker | 0.8.2 | 1024 * 1024 |
| Broker | 0.9.0 | 1048576 |
| Broker | 0.10.0 | 1048576 |
| Broker | 0.10.1 | 1048576 |
| Broker | 0.10.2 | 1048576 |
| Broker | 0.11.0 | 1048576 |
| Broker | 1.0 | 1048576 |
| Broker | 1.1 | 1048576 |
| Broker | 2.0 | 1048576 |
| Broker | 2.1 | 1048576 |
| Broker | 2.2 | 1048576 |
| Broker | 2.3 | 1048576 |
| Broker | 2.4 | 1048576 |
| Broker | 2.5 | 1048576 |
| Broker | 2.6 | 1048576 (1 mebibyte) |
| Broker | 2.7 | 1048576 (1 mebibyte) |
| Broker | 2.8 | 1048576 (1 mebibyte) |
| Broker | 3.0 | 1048576 (1 mebibyte) |
| Broker | 3.1 | 1048576 (1 mebibyte) |
| Broker | 3.2 | 1048576 (1 mebibyte) |
| Broker | 3.3 | 1048576 (1 mebibyte) |
| Broker | 3.4 | 1048576 (1 mebibyte) |
| Broker | 3.5 | 1048576 (1 mebibyte) |
| Broker | 3.6 | 1048576 (1 mebibyte) |
| Broker | 3.7 | 1048576 (1 mebibyte) |
| Broker | 3.8 | 1048576 (1 mebibyte) |
| Broker | 3.9 | 1048576 (1 mebibyte) |
| Broker | 4.0 | 1048576 (1 mebibyte) |
| Broker | 4.1 | 1048576 (1 mebibyte) |
| Broker | 4.2 | 1048576 (1 mebibyte) |
| Broker | 4.3 | 1048576 (1 mebibyte) |
| Broker | 4.4 | 1048576 (1 mebibyte) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / throughput | 10485760 | Sets a follower per-partition fetch target; the first oversized batch can exceed it so replication can progress. Tradeoff: Larger targets can increase memory and burst size. A smaller target does not necessarily stall replication forever. Reference · 2026-10-27 |
Related Configs
num.replica.fetchers · message.max.bytes · replica.socket.receive.buffer.bytes