ApsaraMQ for Kafka enforces constraints on specific metrics. To avoid program exceptions, stay within these limits when using ApsaraMQ for Kafka.
Instability caused by exceeding the following limits is not covered under the Service-Level Agreement (SLA) or eligible for compensation.
Limits
The following table lists the limits for ApsaraMQ for Kafka.
|
Limits |
Limit |
Description |
|
Maximum number of topics (total partitions) |
Supported |
ApsaraMQ for Kafka stores and coordinates data at the partition level. Too many topics or partitions causes storage fragmentation, reducing cluster performance and stability. |
|
Minimum number of partitions per topic |
|
If traffic is high, a single partition may cause data skew and hot spots. Set the number of partitions appropriately. |
|
Decrease the number of partitions for a topic |
Not supported |
This is restricted by Apache Kafka's design. |
|
Expose ZooKeeper |
Not supported |
Starting with Apache Kafka 0.9.0, clients no longer need to access ZooKeeper. In ApsaraMQ for Kafka, ZooKeeper is partially shared and not exposed for security reasons. You do not need to interact with ZooKeeper. |
|
Log on to machines where ApsaraMQ for Kafka is deployed |
Not supported |
None. |
|
Version |
2.2.x to 3.3.x |
To upgrade your version, see Upgrade instance versions. |
|
Partition-to-topic ratio |
1:1 |
The number of available topics equals the total number of partitions. For example, if you purchase an instance with 50 partitions, select the alikafka.hw.2xlarge traffic specification, and receive 1,000 free partitions, your total partitions = 50 + 1,000 = 1,050. Thus, you can create up to 1,050 topics. Note
This applies only to non-serverless instances. |
|
Change instance region |
Not supported |
After purchase and deployment, an instance’s region is tightly bound to physical resources and cannot be changed. To use a different region, release the instance and purchase a new one. |
|
Change instance network properties |
Supported |
You can change network properties as needed. For details, see Upgrade instance configurations. |
|
Message size |
10 MB |
Messages must not exceed 10 MB. Larger messages fail to send. |
|
Monitoring and alerting |
Supported |
Data has a 1-minute delay. |
|
Access point |
Purchase Specifications |
|
|
Single-partition cloud storage |
May become unavailable during breakdowns or upgrades |
Create topics with more than one partition. If your workload requires a single partition, use local storage. Note
|
|
Maximum number of messages per batch |
32,767 |
If individual messages are small, set Note
This limit applies only to non-serverless instances. |
You can no longer purchase non-serverless ApsaraMQ for Kafka instances by topic count. If you have an existing instance purchased by topic, the partition-to-topic ratio is 1:16. For Professional Edition instances purchased by topic, the number of available topics equals twice the number of purchased topics.
Quota limits
The following table lists usage limits for ApsaraMQ for Kafka. Exceeding these limits may cause stability issues. The “Other limits” section describes scenarios that can overload the server and affect stability. Use caution in these cases.
Limits apply per cluster unless otherwise stated. To request higher quotas, submit a ticket.
The “//” symbol in formulas denotes integer division (rounding down).
|
Limitations |
Conditions |
Description |
||
|
Subscription and hourly pay-as-you-go instances |
Serverless (Basic Edition) |
Serverless (Standard Edition and Professional Edition) |
||
|
Connections per node |
Formula:
|
Formula:
|
TCP connections per broker. To request a higher connection limit, please submit a ticket. |
|
|
Internet (SSL) connections per node |
Formula:
|
Formula:
|
Internet (SSL) TCP connections per broker. |
|
|
Connection attempts per second per node |
50 per second |
150 per second |
150 per second |
Client-to-server connection attempts per second, including failed attempts due to authentication errors. |
|
Internet (SSL) connection attempts per second per node |
10 per second |
Client-to-server Internet (SSL) connection attempts per second, including failed attempts due to authentication errors. |
||
|
Batch size |
Fragmented sending occurs if batch size TP50 is below 4 KB. |
Message batch size in PRODUCE requests after client batching. Use client version 2.4 or later to improve batching. See Improve sending performance (reduce fragmented requests). |
||
|
Request Frequency (Cluster) |
Formula:
|
Formula:
|
Formula:
|
Number of PRODUCE requests clients send per second. To request a higher limit, please submit a ticket. |
|
Fetch request rate (cluster) |
Formula:
|
Formula:
|
Formula:
|
Number of FETCH requests clients send per second. To request a higher limit, please submit a ticket. |
|
Offset commit rate per node |
Formula:
|
Formula:
|
Number of OFFSET_COMMIT requests clients send per second. To request a higher limit, please submit a ticket. |
|
|
Metadata request rate (cluster) |
Formula:
|
Formula:
|
Client metadata requests received by the server, such as Warning
Excessive requests can affect cluster stability. |
|
|
Maximum number of partitions |
For maximum partitions per instance type, see Instance partitions. |
Includes partitions from all topic types created by users. To request a higher limit, please submit a ticket. |
||
|
Partition creation/deletion rate (cluster) |
900 partitions every 10 seconds |
Includes all operations via console, OpenAPI, Kafka Admin, and other methods. |
||
|
Consumer groups per cluster |
2,000 per cluster Maintain a topic-to-group subscription ratio of 1:1. Do not exceed 3:1. |
Number of consumer groups used. To request a higher limit, please submit a ticket. Warning
Too many consumer groups increases coordination load and metadata complexity, affecting performance and fault recovery time. |
||
|
Message format version |
Message format version must be greater than V1 for both produce and consume operations. |
Use client version 2.4 or later. Warning
Older Kafka message formats can increase server CPU usage, reduce throughput, and cause compatibility and security issues. |
||
|
Other limits |
|
None |
||