If you do not need an RDS instance for a period, you can suspend it. Suspending an instance releases its computing resources, and you are no longer billed for its instance type. This helps you save costs.
Prerequisites
To manually suspend an instance, the instance must meet the following conditions. You can log on to the RDS Management Console and check the instance configuration in the Basic Information section of the instance details page to verify that the instance meets these conditions:
-
The instance uses the pay-as-you-go billing method. If your instance is on a subscription plan, you can convert it to pay-as-you-go.
NoteYou cannot manually suspend a Serverless instance from the console or by calling an API. You can enable the automatic start and stop feature for the Serverless instance. If the instance is idle (has no connections) for more than 10 minutes, it is automatically suspended. For more information, see Set automatic start and stop for a Serverless instance.
-
The instance is of the High-availability Edition or Basic Edition.
-
The instance storage type is ESSD. For instances that use high-performance local disks or SSD cloud disks, you must change the storage type to ESSD before you can suspend the instance. Instances that use high-performance cloud disks cannot be directly changed to ESSD. You must purchase a new instance that uses ESSD and then use Data Transmission Service (DTS) to migrate data from the original instance to the new one.
-
The instance family is General-purpose.
-
The minor engine version of the instance is 20201031 or later. For instructions on how to upgrade the minor engine version, see Upgrade the minor engine version.
-
The instance is a primary instance and has no read-only instances. To learn how to delete a read-only instance, see Release or unsubscribe from an instance.
-
The database proxy feature is disabled for the instance. For information about how to disable the database proxy, see Disable the database proxy.
-
The instance is in the Running state.
Usage notes
-
After an instance is suspended, its computing resources are released, and you are no longer billed for its instance type. However, you continue to be charged for resources such as storage space and backups. For more information, see Billable items.
-
An instance can remain suspended for a maximum of 30 days. If you do not start the instance within 30 days, it is automatically started for maintenance. You will be notified by internal message, text message, and email after the instance starts.
NoteFor long-term suspensions, you can use a Serverless instance and configure its auto-suspend feature. A suspended Serverless instance with no active connections can remain suspended indefinitely. For more information, see ApsaraDB RDS for MySQL Serverless instances.
Impacts
-
While an instance is suspended, all its features are unavailable. You cannot connect to the instance, create a backup, or resize it.
WarningWhile an instance is suspended, only its data is retained. The database is inaccessible. Adjust your business services accordingly before you suspend the instance.
-
While an instance is suspended, its latest full backup will not expire. However, other backups, including full and incremental backups, still expire after their retention period ends.
WarningAfter a backup expires, you cannot use it to restore data to a specific point in time. Alibaba Cloud is not liable for any data loss from expired backups. We recommend that you verify the validity of your backup files and configure long-term retention for backups before you suspend an instance.
-
When you suspend an instance, its computing resources are reclaimed. When you start the instance again, the instance might fail to start due to insufficient inventory. If this occurs, you can try again later or restore data from a full backup to a new instance.
-
The public and internal endpoints of an instance are retained after it is suspended. You can use the same endpoints to connect to the instance when you start it again.
-
You cannot modify the IP whitelist of a suspended instance.
Suspend an instance
Follow these steps to stop an ApsaraDB RDS for MySQL instance that meets the prerequisites:
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
-
Find the instance that you want to stop. In the Actions column, choose .
NoteIf the Stop Instance option is not available, verify that your instance meets the prerequisites.
-
In the dialog box that appears, click OK.
On the Instance Details page, the Status changes to Stopped.
If you cannot suspend an instance and do not plan to use it for a long time, you can release the instance and retain its backups to reduce costs. If you need the instance later, you can restore its data from a backup. For more information, see Release an instance and retain its backups.
Start an instance
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
-
Find the instance that you want to start. In the Actions column, choose .
-
In the dialog box that appears, click OK and wait for the instance's Instance Status to change to Running.
FAQ
-
Q: How does the instance status change when I stop and start an instance?
A:
The instance status changes as follows:
-
When you stop an instance, its status changes from Running to Stopping. After the instance is stopped, its status changes to Stopped.
-
When you start an instance, its status changes from Stopped to Starting. After the instance is started, its status changes to Running.
-
-
Q: After I start a stopped instance from the console, do I need to restart it to recover data?
A: No. After you use the Start Instance operation, the instance is ready to use.
-
Q: Is the historical monitoring data of an instance retained after the instance is suspended?
A: Yes, the historical monitoring data is retained.
-
Q: After an instance is suspended, is the data in its storage space and memory retained?
A: Only the data in the storage space is retained. Data in the memory is not retained.
-
Q: Does suspending an instance remove its pending tasks, such as an availability zone migration or a resize scheduled for a maintenance window?
A: No. While an instance is suspended, you cannot resize it, migrate its availability zone, or restart it. However, pending tasks for the instance are not removed.
-
Q: Does the backup retention period include the time during which the instance is suspended?
A: Yes. During the suspension, backups expire on schedule according to the backup policy. However, the latest full backup of the instance is always retained, even if it exceeds the specified retention period.
-
Q: For a multi-AZ instance, can the primary and secondary availability zones switch after the instance is started?
A: Yes, a primary/secondary switchover might occur when you start the instance, which can swap the primary and secondary availability zones.
-
Q: Why can't I suspend some general-purpose instances?
A: If your instance is of the Basic Edition and has the instance type
mysql.n2.xlarge.1ormysql.n4.xlarge.1, and it was created before September 30, 2022, you must upgrade the minor engine version to the latest version and try again.
Related APIs
|
API |
Description |
|
Stops an RDS instance. |
|
|
Starts a stopped RDS instance. |