num.partitions — Kafka Broker Configuration
The default number of log partitions per topic. This configuration affects the following paths:1
Description
The default number of log partitions per topic. This configuration affects the following paths:1. Auto topic creation2. Internal streams topic creation3. Topic creation via AdminClient#createTopics when the number of partition is set to -1For (1), the value from the broker configuration is used only when it is explicitly set. If it is not explicitly configured on the broker, the value from the controller configuration is used.For (2) and (3), the value from the controller configuration is always used.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.7 | 1 |
| Broker | 0.8.0 | 1 |
| Broker | 0.8.1 | 1 |
| Broker | 0.8.2 | 1 |
| Broker | 0.9.0 | 1 |
| Broker | 0.10.0 | 1 |
| Broker | 0.10.1 | 1 |
| Broker | 0.10.2 | 1 |
| Broker | 0.11.0 | 1 |
| Broker | 1.0 | 1 |
| Broker | 1.1 | 1 |
| Broker | 2.0 | 1 |
| Broker | 2.1 | 1 |
| Broker | 2.2 | 1 |
| Broker | 2.3 | 1 |
| Broker | 2.4 | 1 |
| Broker | 2.5 | 1 |
| Broker | 2.6 | 1 |
| Broker | 2.7 | 1 |
| Broker | 2.8 | 1 |
| Broker | 3.0 | 1 |
| Broker | 3.1 | 1 |
| Broker | 3.2 | 1 |
| Broker | 3.3 | 1 |
| Broker | 3.4 | 1 |
| Broker | 3.5 | 1 |
| Broker | 3.6 | 1 |
| Broker | 3.7 | 1 |
| Broker | 3.8 | 1 |
| Broker | 3.9 | 1 |
| Broker | 4.0 | 1 |
| Broker | 4.1 | 1 |
| Broker | 4.2 | 1 |
| Broker | 4.3 | 1 |
| Broker | 4.4 | 1 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / throughput | 12 | Sets the default partition count for automatic topic creation where applicable. Existing topics are not repartitioned by this setting. Tradeoff: More partitions add broker metadata, replication and consumer overhead. The right count depends on workload and ordering requirements. Reference · 2026-10-27 |
| broker / cost | 1 | Sets the default partition count for automatic topic creation where applicable. Existing topics are not repartitioned by this setting. Tradeoff: More partitions add broker metadata, replication and consumer overhead. The right count depends on workload and ordering requirements. Reference · 2026-10-27 |
Related Configs
default.replication.factor · auto.create.topics.enable · log.retention.bytes · log.segment.bytes