conduktor.io ↗

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

ComponentKafka version lineDocumented default
Broker0.8.01024 * 1024
Broker0.8.11024 * 1024
Broker0.8.21024 * 1024
Broker0.9.01048576
Broker0.10.01048576
Broker0.10.11048576
Broker0.10.21048576
Broker0.11.01048576
Broker1.01048576
Broker1.11048576
Broker2.01048576
Broker2.11048576
Broker2.21048576
Broker2.31048576
Broker2.41048576
Broker2.51048576
Broker2.61048576 (1 mebibyte)
Broker2.71048576 (1 mebibyte)
Broker2.81048576 (1 mebibyte)
Broker3.01048576 (1 mebibyte)
Broker3.11048576 (1 mebibyte)
Broker3.21048576 (1 mebibyte)
Broker3.31048576 (1 mebibyte)
Broker3.41048576 (1 mebibyte)
Broker3.51048576 (1 mebibyte)
Broker3.61048576 (1 mebibyte)
Broker3.71048576 (1 mebibyte)
Broker3.81048576 (1 mebibyte)
Broker3.91048576 (1 mebibyte)
Broker4.01048576 (1 mebibyte)
Broker4.11048576 (1 mebibyte)
Broker4.21048576 (1 mebibyte)
Broker4.31048576 (1 mebibyte)
Broker4.41048576 (1 mebibyte)

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
broker / throughput10485760Sets 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

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