Help Center/ Distributed Message Service for Kafka/ FAQs/ Topics and Partitions/ Is There a Limit on the Number of Topics in a Kafka Instance?
Updated on 2024-11-13 GMT+08:00

Is There a Limit on the Number of Topics in a Kafka Instance?

The number of topics is related to the total number of topic partitions and the number of partitions in each topic. There is an upper limit on the aggregate number of partitions of topics. When this limit is reached, no more topics can be created.

The partition limit varies depending on the flavor, as shown in the following table.

Table 1 Cluster Kafka instance specifications

Flavor

Brokers

Maximum TPS per Broker

Maximum Partitions per Broker

Recommended Consumer Groups per Broker

Maximum Client Connections per Broker

Storage Space (GB)

Traffic per Broker (MB/s)

kafka.2u4g.cluster.small

3–30

20,000

100

15

2000

300–300,000

40

kafka.2u4g.cluster

3–30

30,000

250

20

2000

300–300,000

100

kafka.4u8g.cluster

3–30

100,000

500

100

4000

300–600,000

200

kafka.8u16g.cluster

3–50

150,000

1000

150

4000

300–1,500,000

375

kafka.12u24g.cluster

3–50

200,000

1500

200

4000

300–1,500,000

625

kafka.16u32g.cluster

3–50

250,000

2000

200

4000

300–1,500,000

750

Table 2 Single-node Kafka instance specifications

Flavor

Brokers

Max. TPS per Broker

Max. Partitions per Broker

Recommended Consumer Groups per Broker

Max. Client Connections per Broker

Storage Space (GB)

Traffic Limit per Broker (MB/s)

kafka.2u4g.single.small

1

20,000

100

15

2000

100–10,000

40

kafka.2u4g.single

1

30,000

250

20

2000

100–10,000

100