partitioner.ignore.keys — Kafka Producer Configuration
When set to 'true' the producer won't use record keys to choose a partition. If 'false', producer would choose a partition based on a hash of the key when a key is present.
Description
When set to 'true' the producer won't use record keys to choose a partition. If 'false', producer would choose a partition based on a hash of the key when a key is present. Note: this setting has no effect if a custom partitioner is used.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 3.3 | false |
| 3.4 | false |
| 3.5 | false |
| 3.6 | false |
| 3.7 | false |
| 3.8 | false |
| 3.9 | false |
| 4.0 | false |
| 4.1 | false |
| 4.2 | false |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| producer / throughput | false | Keep key-based partitioning active; enabling ignore.keys allows adaptive batching to kick in for keyed records but destroys key-partition affinity, breaking any consumer ordering or compaction invariants. |
Related Configs
partitioner.adaptive.partitioning.enable · partitioner.class
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.