This topic describes the limits of ApsaraDB RDS for MySQL. Before you use ApsaraDB RDS for MySQL, we recommend that you take note of these limits to ensure the stability and security of your database system.
In this topic, if no specific MySQL versions are mentioned, the limits that correspond are imposed regardless of the MySQL versions.
For more information about the limits of ApsaraDB RDS that is used together with a different database engine, see the following topics:
Limits on specifications and performance
Item | Specification | Description |
Storage capacity |
| The maximum storage capacity of an RDS instance varies based on the instance type. For more information, see Primary ApsaraDB RDS instance types. |
Temporary table size |
| The maximum size of temporary tables in an RDS instance that uses local disks is 300 GB. If the size of temporary tables exceeds 300 GB, the RDS instance may encounter frequent high-availability switchovers and downtime issues. |
Connections | Up to 100,000. | The maximum number of connections to an RDS instance varies based on the instance type. For more information, see Primary ApsaraDB RDS instance types. |
IOPS |
| None. |
Memory capacity |
| For RDS instances that use cloud disks, the memory includes the memory that is occupied by the RDS-related management services and the underlying operating system. Therefore, the available memory of an RDS instance may be less than the memory capacity that is supported by the instance type. The following list provides the amount of memory that is occupied by different components:
|
JSON field size | A JSON field can store up to 4 GB of data. | N/A |
Limits on quotas
Item | Description |
Read-only RDS instances | Up to 10 read-only RDS instances can be created and attached to the primary RDS instance. For more information about read-only RDS instances, see Overview of read-only ApsaraDB RDS for MySQL instances. |
Primary RDS instances | Up to 200 pay-as-you-go or serverless primary RDS instances can be created within each Alibaba Cloud account. You can go to the Quota Center page to apply for a quota increase for your Alibaba Cloud account. |
Tags | The key of a tag must be unique. You can add up to 20 tags to an RDS instance. You can add tags to up to 50 RDS instances at a time. For more information, see Add tags to ApsaraDB RDS instances. |
Free quotas on backup storage |
If your backup storage exceeds the free quota, you are charged for the excess backup storage that you use. You can calculate your excess backup storage by using the following formula: Excess backup storage = Size of data backup files + Size of log backup files - Free quota. Unit: GB. You can round the obtained result only up to the next integer. For more information, see Backup storage fees. |
Backup retention period | The default retention period is 7 days, and the maximum retention period is 730 days. Data backup files that are retained for more than 730 days are archived. You are charged less for archived backup files than for regular backup files. For more information, see Backup storage fees. |
Log retention period |
For more information, see View error logs and slow logs. |
Limits on names
Item | Description |
Instance names |
|
Usernames |
|
Database names |
|
User-defined function (UDF) names | Do not use the reserved keywords in the name of a UDF. For more information, see Reserved keywords of an ApsaraDB RDS for MySQL instance. |
Limits on security
Item | Description |
Passwords | The password of an account must meet the following requirements:
|
Ports | By default, an RDS instance is connected over port 3306. You can change the port number based on your business requirements. For more information, see View and manage instance endpoints and ports. |
Cloud disk encryption | You can enable cloud disk encryption for an RDS instance only when you purchase the instance. Cloud disk encryption cannot be disabled after it is enabled. For more information, see Configure the cloud disk encryption feature. |
Security groups | You can configure up to 10 security groups for an RDS instance.
For more information, see Configure a security group for an ApsaraDB RDS for MySQL instance. |
IP address whitelists | You can configure up to 50 IP address whitelists for an RDS instance and add up to 1,000 IP addresses and CIDR blocks to an IP address whitelist. For more information, see Configure an IP address whitelist for an ApsaraDB RDS for MySQL instance. |
Account permissions |
|
Privileged accounts | You can create and manage privileged accounts in the ApsaraDB RDS console or by using the ApsaraDB RDS API. The privileged account of an RDS instance has permissions to disconnect the database connections that are established by using standard accounts. Only one privileged account can be created for each RDS instance. For more information, see Create an account. |
Standard accounts |
|
Instance parameters | You can modify most of the instance parameters in the ApsaraDB RDS console or by using the ApsaraDB RDS API. For security and stability purposes, some parameters cannot be modified. For more information, see Configure instance parameters. |
Limits on operations
Item | Description |
Restoration |
|
Storage engines | Only the InnoDB storage engine and the X-Engine storage engine are supported. For more information about X-Engine, see Introduction to X-Engine.
|
Logs |
|
Primary/secondary replication | ApsaraDB RDS for MySQL provides a primary/secondary replication architecture in all RDS editions except for RDS Basic Edition. In RDS High-availability Edition, secondary RDS instances cannot process read requests. In RDS Cluster Edition, secondary nodes can process read requests. |
Instance restart | You can restart an RDS instance in the ApsaraDB RDS console or by using the ApsaraDB RDS API. |
Network settings | If an RDS instance runs MySQL 5.5 or MySQL 5.6 in the classic network and the database proxy feature is enabled for the RDS instance, you cannot enable timestamps in SNAT mode by configuring the net.ipv4.tcp_timestamps parameter. |
Storage capacity | If the storage capacity of an RDS instance is exhausted, the RDS instance is automatically locked and cannot provide services. We recommend that you check the storage usage on a regular basis. |
Size of a single table | The maximum size of a single table is 16 TB due to the maximum file size that is allowed by the operating system. For more information, see Limits on the size of a single table in ApsaraDB RDS for MySQL. |
Help information | You can query detailed help information from the mysql.help_topic table on an RDS instance that runs any MySQL version. The data and schema of the table may vary based on the MySQL version. |
Public endpoints | If you want to connect to an RDS instance by using a public endpoint, you must manually apply for a public endpoint. For more information, see Apply for or release a public endpoint for an ApsaraDB RDS for MySQL instance. |
Instance restart | You can restart an RDS instance in the ApsaraDB RDS console or by using the ApsaraDB RDS API. |