conduktor.io ↗

num.partitions — Kafka Broker Configuration

The default number of log partitions per topic.

Description

The default number of log partitions per topic

Default Values by Kafka Version

Kafka VersionDefault Value
0.71
0.8.01
0.8.11
0.8.21
0.9.01
0.10.01
0.10.11
0.10.21
0.11.01
1.01
1.11
2.01
2.11
2.21
2.31
2.41
2.51
2.61
2.71
2.81
3.01
3.11
3.21
3.31
3.41
3.51
3.61
3.71
3.81
3.91
4.01
4.11
4.21

Tuning Recommendation

ProfileRecommendedWhy
broker / throughput12Auto-created topics default to 1 partition, which serializes all writes through a single leader. Setting 12 partitions enables parallel produce and consume across 12 independent log segments, directly multiplying throughput. 12 is evenly divisible by 1, 2, 3, 4, 6 — good fit for most consumer group sizes.
broker / cost1Keep the default of 1 partition for cost-optimized clusters. Each partition consumes file handles, index files, and controller memory. For cost-focused workloads, right-size partition counts explicitly per topic rather than defaulting high.

Related Configs

default.replication.factor · auto.create.topics.enable · log.retention.bytes · log.segment.bytes

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.