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
| Component | Kafka version line | Documented default |
|---|---|---|
| Producer | 3.3 | false |
| Producer | 3.4 | false |
| Producer | 3.5 | false |
| Producer | 3.6 | false |
| Producer | 3.7 | false |
| Producer | 3.8 | false |
| Producer | 3.9 | false |
| Producer | 4.0 | false |
| Producer | 4.1 | false |
| Producer | 4.2 | false |
| Producer | 4.3 | false |
| Producer | 4.4 | false |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| producer / throughput | false | Keeping false preserves key-based partition selection with the built-in partitioner. Tradeoff: Setting true makes the built-in partitioner ignore keys when selecting partitions and can invalidate application key locality assumptions. Reference · 2026-10-27 |
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.