partitioner.adaptive.partitioning.enable — Kafka Producer Configuration
When set to 'true', the producer will try to adapt to broker performance and produce more messages to partitions hosted on faster brokers. If 'false', the producer will try to distribute messages uniformly
Description
When set to 'true', the producer will try to adapt to broker performance and produce more messages to partitions hosted on faster brokers. If 'false', the producer will try to distribute messages uniformly. Note: this setting has no effect if a custom partitioner is used.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Producer | 3.3 | true |
| Producer | 3.4 | true |
| Producer | 3.5 | true |
| Producer | 3.6 | true |
| Producer | 3.7 | true |
| Producer | 3.8 | true |
| Producer | 3.9 | true |
| Producer | 4.0 | true |
| Producer | 4.1 | true |
| Producer | 4.2 | true |
| Producer | 4.3 | true |
| Producer | 4.4 | true |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| producer / throughput | true | Allows the built-in producer partitioner to favor partitions on faster brokers for eligible unkeyed records. Tradeoff: Adaptive distribution can be uneven. It does not override explicit partition selection or every custom partitioner. Reference · 2026-10-27 |
Related Configs
partitioner.class · partitioner.ignore.keys · partitioner.availability.timeout.ms