conduktor.io ↗

fetch.max.bytes — Kafka Broker Configuration

The maximum amount of data the server should return for a fetch request. Records are fetched in batches by the consumer, and 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 the consumer can make progress.

Description

The maximum amount of data the server should return for a fetch request. Records are fetched in batches by the consumer, and 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 the consumer can make progress. As such, this is not a absolute maximum. The maximum record batch size accepted by the broker is defined via message.max.bytes (broker config) or max.message.bytes (topic config). Note that the consumer performs multiple fetches in parallel.

Default Values by Kafka Version

Kafka VersionDefault Value
2.557671680
2.657671680 (55 mebibytes)
2.757671680 (55 mebibytes)
2.857671680 (55 mebibytes)
3.057671680 (55 mebibytes)
3.157671680 (55 mebibytes)
3.257671680 (55 mebibytes)
3.357671680 (55 mebibytes)
3.457671680 (55 mebibytes)
3.557671680 (55 mebibytes)
3.657671680 (55 mebibytes)
3.757671680 (55 mebibytes)
3.857671680 (55 mebibytes)
3.957671680 (55 mebibytes)
4.057671680 (55 mebibytes)
4.157671680 (55 mebibytes)
4.257671680 (55 mebibytes)

Tuning Recommendation

ProfileRecommendedWhy
consumer / throughput104857600Raising the per-FetchRequest cap from 50MB to 100MB allows the consumer to retrieve more data in a single network round-trip when many partitions are assigned. Critical when a single consumer handles 50+ partitions — the 50MB cap becomes a bottleneck shared across all partitions in one fetch cycle.

Related Configs

fetch.min.bytes · fetch.max.wait.ms · max.partition.fetch.bytes · max.poll.records · receive.buffer.bytes · check.crcs

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.