max.partition.fetch.bytes — Kafka Consumer Configuration
The maximum amount of data per-partition the server will return. Records are fetched in batches by the consumer
Description
The maximum amount of data per-partition the server will return. Records are fetched in batches by the consumer. If the first record batch in the first non-empty partition of the fetch is larger than this limit, the batch will still be returned to ensure that the consumer can make progress. The maximum record batch size accepted by the broker is defined via message.max.bytes (broker config) or max.message.bytes (topic config). See fetch.max.bytes for limiting the consumer request size.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.9.0 | 1048576 |
| Consumer | 0.10.0 | 1048576 |
| Consumer | 0.10.1 | 1048576 |
| Consumer | 0.10.2 | 1048576 |
| Consumer | 0.11.0 | 1048576 |
| Consumer | 1.0 | 1048576 |
| Consumer | 1.1 | 1048576 |
| Consumer | 2.0 | 1048576 |
| Consumer | 2.1 | 1048576 |
| Consumer | 2.2 | 1048576 |
| Consumer | 2.3 | 1048576 |
| Consumer | 2.4 | 1048576 |
| Consumer | 2.5 | 1048576 |
| Consumer | 2.6 | 1048576 (1 mebibyte) |
| Consumer | 2.7 | 1048576 (1 mebibyte) |
| Consumer | 2.8 | 1048576 (1 mebibyte) |
| Consumer | 3.0 | 1048576 (1 mebibyte) |
| Consumer | 3.1 | 1048576 (1 mebibyte) |
| Consumer | 3.2 | 1048576 (1 mebibyte) |
| Consumer | 3.3 | 1048576 (1 mebibyte) |
| Consumer | 3.4 | 1048576 (1 mebibyte) |
| Consumer | 3.5 | 1048576 (1 mebibyte) |
| Consumer | 3.6 | 1048576 (1 mebibyte) |
| Consumer | 3.7 | 1048576 (1 mebibyte) |
| Consumer | 3.8 | 1048576 (1 mebibyte) |
| Consumer | 3.9 | 1048576 (1 mebibyte) |
| Consumer | 4.0 | 1048576 (1 mebibyte) |
| Consumer | 4.1 | 1048576 (1 mebibyte) |
| Consumer | 4.2 | 1048576 (1 mebibyte) |
| Consumer | 4.3 | 1048576 (1 mebibyte) |
| Consumer | 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 |
|---|---|---|
| consumer / throughput | 4194304 | Sets the fetch target per partition. The first oversized batch can exceed this value to allow progress. Tradeoff: Total memory also depends on partitions, brokers and concurrent fetches. Coordinate with producer record-batch sizes. Reference · 2026-10-27 |
Related Configs
fetch.min.bytes · fetch.max.bytes · max.poll.records · receive.buffer.bytes