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', 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', producer will try to distribute messages uniformly. Note: this setting has no effect if a custom partitioner is used
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 3.3 | true |
| 3.4 | true |
| 3.5 | true |
| 3.6 | true |
| 3.7 | true |
| 3.8 | true |
| 3.9 | true |
| 4.0 | true |
| 4.1 | true |
| 4.2 | true |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| producer / throughput | true | Keep adaptive partitioning enabled (default since 3.3): it routes batches away from slow/overloaded partitions using real-time queue depth, improving sustained throughput by 10-30% on heterogeneous clusters. |
Related Configs
partitioner.class · partitioner.ignore.keys · partitioner.availability.timeout.ms
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.