ApsaraDB RDS for MySQL has several limits to ensure the stability and security of instances.
Unless a specific version is mentioned, the limits described in this topic apply to all versions.
For the limits of other database engines, see the following topics:
Specifications and performance limits
Resource | Specification | Description |
Storage space |
| The maximum storage space varies by instance type. For more information, see Primary instance types. |
Temporary tablespace size |
| The maximum temporary tablespace for a high-performance local disk is 300 GB. Exceeding this limit can cause frequent high-availability switches and instance breakdowns. |
Connections | Up to 100,000 | The maximum number of connections varies by instance type. For more information, see Primary instance types. |
IOPS |
| None |
Memory size |
| The underlying operating system and ApsaraDB RDS management services of an ApsaraDB RDS for MySQL cloud disk instance consume some memory. Therefore, the actual available memory of the instance is less than the specified memory size. Memory usage details:
|
JSON field | Maximum storable data is 4 GB | None |
Quotas
Quota | Limit |
Read-only instances | You can create a maximum of 10 read-only instances. |
Primary instances | The quota for pay-as-you-go and Serverless primary instances is 200. To increase the quota, submit a request in Quota Center. |
Tags | Each tag key must be unique. You can set a maximum of 20 tags. Add tags to a maximum of 50 instances in a batch. To create tags, see Create tags. |
Free backup storage quota |
The excess usage is calculated as follows: Data backup size + Log backup size - Free quota. The value is measured in GB and rounded up to the nearest integer. For more information about backups, see Backup storage costs. |
Instance backup retention period | The default retention period is 7 days. The maximum retention period is 730 days. Data backups retained for more than 730 days are converted to archive backups, which incur lower archive backup fees. For more information, see Backup storage costs. |
Log retention period |
For more information, see View error logs and slow query logs. |
Naming limits
Limits | Description |
Instance name |
|
Account name |
|
Database name |
|
User-defined function name | Avoid using reserved keywords. |
Security limits
Limitations | Description |
Password | The password must meet the following requirements:
|
Port | The default port for ApsaraDB RDS for MySQL instances is 3306. You can manually change the port number. For more information, see View or change the internal and public endpoints and ports. |
Disk encryption | Disk encryption can be enabled only when you create an instance and cannot be disabled. |
Security group | Each instance can be added to a maximum of 10 security groups.
To configure security groups, see Configure a security group. |
IP whitelist | Each instance can have up to 50 whitelist groups. Each whitelist group can contain up to 1,000 IP addresses or CIDR blocks. To configure a whitelist, see Configure an IP address whitelist. |
Account permissions |
|
Privileged account | A privileged account can be created and managed only in the console or by calling an API. It can be used to disconnect any account. You can create only one privileged account for each instance. |
Standard account |
|
Instance parameters | Most instance parameters can be modified in the console or by calling an API. For security and stability, some parameters cannot be modified. |
Instance operation limits
Limits | Description |
Backup and recovery |
|
MySQL storage engine | Only the InnoDB engine is supported.
|
Logs |
|
Primary/secondary replication | ApsaraDB RDS for MySQL provides a primary/secondary replication architecture (except for Basic Edition instances). The secondary instance of a high-availability series instance is not readable. The secondary nodes of a Cluster Edition instance are readable. |
Instance restart | Restart the instance in the console or by calling an API. |
Network settings | If a MySQL 5.5 or MySQL 5.6 instance is in the classic network and has database proxy enabled, do not enable net.ipv4.tcp_timestamps in SNAT mode. |
Storage space | If the storage space of an instance is full, the instance is automatically locked. This affects its use. Regularly check the storage usage. |
Single table size | Due to operating system file size limits, the maximum size of a single table in ApsaraDB RDS for MySQL is 16 TB. |
Help information | All MySQL versions include the |
Public endpoint | |
Restart an RDS instance | Restart the instance using the console or by calling an OpenAPI. |