fetch.max.wait.ms — Kafka Consumer Configuration
The maximum amount of time the server will block before answering the fetch request there isn't sufficient data to immediately satisfy the requirement given by fetch.min.bytes. This config is used only for local log fetch
Description
The maximum amount of time the server will block before answering the fetch request there isn't sufficient data to immediately satisfy the requirement given by fetch.min.bytes. This config is used only for local log fetch. To tune the remote fetch maximum wait time, please refer to 'remote.fetch.max.wait.ms' broker config
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.9.0 | 500 |
| Consumer | 0.10.0 | 500 |
| Consumer | 0.10.1 | 500 |
| Consumer | 0.10.2 | 500 |
| Consumer | 0.11.0 | 500 |
| Consumer | 1.0 | 500 |
| Consumer | 1.1 | 500 |
| Consumer | 2.0 | 500 |
| Consumer | 2.1 | 500 |
| Consumer | 2.2 | 500 |
| Consumer | 2.3 | 500 |
| Consumer | 2.4 | 500 |
| Consumer | 2.5 | 500 |
| Consumer | 2.6 | 500 |
| Consumer | 2.7 | 500 |
| Consumer | 2.8 | 500 |
| Consumer | 3.0 | 500 |
| Consumer | 3.1 | 500 |
| Consumer | 3.2 | 500 |
| Consumer | 3.3 | 500 |
| Consumer | 3.4 | 500 |
| Consumer | 3.5 | 500 |
| Consumer | 3.6 | 500 |
| Consumer | 3.7 | 500 |
| Consumer | 3.8 | 500 |
| Consumer | 3.9 | 500 |
| Consumer | 4.0 | 500 |
| Consumer | 4.1 | 500 |
| Consumer | 4.2 | 500 |
| Consumer | 4.3 | 500 |
| Consumer | 4.4 | 500 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | 500 | Bounds how long the broker waits to satisfy the minimum data requirement for a consumer fetch. Tradeoff: Shorter waits can increase fetch traffic when little data is available. This is not a bound on processing or all consumer latency. Reference · 2026-10-27 |
| consumer / latency | 10 | Bounds how long the broker waits to satisfy the minimum data requirement for a consumer fetch. Tradeoff: Shorter waits can increase fetch traffic when little data is available. This is not a bound on processing or all consumer latency. Reference · 2026-10-27 |
Related Configs
fetch.min.bytes · fetch.max.bytes