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 Version | Default Value |
|---|---|
| 0.7 | 1 |
| 0.8.0 | 1 |
| 0.8.1 | 1 |
| 0.8.2 | 1 |
| 0.9.0 | 1 |
| 0.10.0 | 1 |
| 0.10.1 | 1 |
| 0.10.2 | 1 |
| 0.11.0 | 1 |
| 1.0 | 1 |
| 1.1 | 1 |
| 2.0 | 1 |
| 2.1 | 1 |
| 2.2 | 1 |
| 2.3 | 1 |
| 2.4 | 1 |
| 2.5 | 1 |
| 2.6 | 1 |
| 2.7 | 1 |
| 2.8 | 1 |
| 3.0 | 1 |
| 3.1 | 1 |
| 3.2 | 1 |
| 3.3 | 1 |
| 3.4 | 1 |
| 3.5 | 1 |
| 3.6 | 1 |
| 3.7 | 1 |
| 3.8 | 1 |
| 3.9 | 1 |
| 4.0 | 1 |
| 4.1 | 1 |
| 4.2 | 1 |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| broker / throughput | 12 | Auto-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 / cost | 1 | Keep 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.