Problem Statement
When trying to create a topic on the Redpanda Serverless cluster, you may receive the following message;
POLICY_VIOLATION: maximum number of partitions exceeded (100)
This is because the serverless cluster limits up to 100 logical partitions. (Ref: Doc)
Solution
Deleting unnecessary topics will give a space to create a new topic.
You can check the current total number of partitions you created by rpk topic
list
.
Here is an example of how to calculate the total number quickly.
$ rpk topic list NAME PARTITIONS REPLICAS tp001 10 3 tp002 50 3 tp003 30 3 $ rpk topic list | grep -v NAME | awk '{total+=$2} END {print total}' 90
Please contact Support if you need to increase the limits.
Note
The logical partition is the total number of partitions of topics. This does not count replicas.