conduktor.io ↗

max.block.ms — Kafka Producer Configuration

The configuration controls how long the KafkaProducer's send(), partitionsFor(), initTransactions(), sendOffsetsToTransaction(), commitTransaction() and abortTransaction() methods will block. For send() this timeout bounds the total time waiting for both metadata fetch and buffer allocation (blocking in the user-supplied serializers or partitioner is not counted against this timeout)

Description

The configuration controls how long the KafkaProducer's send(), partitionsFor(), initTransactions(), sendOffsetsToTransaction(), commitTransaction() and abortTransaction() methods will block. For send() this timeout bounds the total time waiting for both metadata fetch and buffer allocation (blocking in the user-supplied serializers or partitioner is not counted against this timeout). For partitionsFor() this timeout bounds the time spent waiting for metadata if it is unavailable. The transaction-related methods always block, but may timeout if the transaction coordinator could not be discovered or did not respond within the timeout.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.9.060000
Producer0.10.060000
Producer0.10.160000
Producer0.10.260000
Producer0.11.060000
Producer1.060000
Producer1.160000
Producer2.060000
Producer2.160000
Producer2.260000
Producer2.360000
Producer2.460000
Producer2.560000
Producer2.660000 (1 minute)
Producer2.760000 (1 minute)
Producer2.860000 (1 minute)
Producer3.060000 (1 minute)
Producer3.160000 (1 minute)
Producer3.260000 (1 minute)
Producer3.360000 (1 minute)
Producer3.460000 (1 minute)
Producer3.560000 (1 minute)
Producer3.660000 (1 minute)
Producer3.760000 (1 minute)
Producer3.860000 (1 minute)
Producer3.960000 (1 minute)
Producer4.060000 (1 minute)
Producer4.160000 (1 minute)
Producer4.260000 (1 minute)
Producer4.360000 (1 minute)
Producer4.460000 (1 minute)

Tuning Recommendation

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

ProfileProposalRationale and tradeoff
producer / latency1000Bounds blocking in producer API calls for metadata and buffer availability; it is separate from asynchronous delivery timing.

Tradeoff: The application thread can block for this duration. User serializer or partitioner time is not included in the documented send() bound.

Reference · 2026-10-27
producer / durability60000Bounds blocking in producer API calls for metadata and buffer availability; it is separate from asynchronous delivery timing.

Tradeoff: The application thread can block for this duration. User serializer or partitioner time is not included in the documented send() bound.

Reference · 2026-10-27

Related Configs

buffer.memory · delivery.timeout.ms · batch.size

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