conduktor.io ↗

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 VersionDefault Value
3.3false
3.4false
3.5false
3.6false
3.7false
3.8false
3.9false
4.0false
4.1false
4.2false

Tuning Recommendation

ProfileRecommendedWhy
producer / throughputfalseKeep 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.