All Products
Search
Document Center

ApsaraDB RDS:Change instance configurations

Last Updated:Dec 04, 2025

This topic describes how to change the configurations of an ApsaraDB RDS for MySQL instance, including changing the instance edition, upgrading or downgrading the instance type, and scaling the storage space.

For more information about all the configuration changes that are supported for ApsaraDB RDS for MySQL instances, see Instance configuration changes.

To change the configurations of instances that run other database engines, see the following topics:

Prerequisites

  • The instance uses the subscription or pay-as-you-go billing method.

    Note

    If the instance uses the serverless billing method, see Configure a serverless ApsaraDB RDS for MySQL instance.

  • Your Alibaba Cloud account has no overdue renewal payments.

  • The instance is in the Running state. If your instance is locked, unlock the instance before you change its configurations.

Limits

  • Order limit: After you submit a configuration change order, you cannot cancel it. Carefully evaluate your business requirements before you change the configurations.

  • Limits on read-only instances:

    • When you change the configurations of a read-only instance, its primary instance must be in the Running state.

    • The storage space of the read-only instance must be greater than or equal to the current storage space of its primary instance. We recommend that you first expand the storage space of all read-only instances and then expand the storage space of the primary instance.

  • Limits on scaling in storage space:

    • Scale-in for instances that use local disks with enhanced performance

      • The storage space after the scale-in must be at least 120% of the used storage space.

        Example: An instance has 100 GB of storage space, of which 50 GB is used. After a scale-in, at least 60 GB (50 × 120%) of storage space must be retained.

    • General scale-in limits

      • For Basic Edition or High-availability Edition instances, you can scale in the storage space of instances that are of the same edition and architecture.

      • The minimum storage space to which you can scale in is calculated using the following formula: min{current usage × 1.3, current usage + 400 GB}. The result must be greater than or equal to the minimum storage space that is supported by the current instance type.

      • Step size: The storage space can be adjusted in increments of 5 GB.

      • If binary logs are rapidly generated on the instance, you must retain a sufficient number of logs on the local disk before you can scale in the storage space of the instance. For more information about how to enable binary logging, see Modify the backup policy for an ApsaraDB RDS for MySQL instance.

  • Limits on product type changes:

    • Zone compatibility: The Yitian Edition supports fewer zones than the Standard Edition. If you cannot change the product type because of this incompatibility, first change the zone of the instance, and then change the product type.

    • Minor engine version constraints: The new minor engine version must be the same as or later than the current minor engine version. You cannot downgrade the minor engine version.

    • Edition constraints: For Basic Edition instances, you can only change the product type from Yitian Edition to Standard Edition. For High-availability Edition and Cluster Edition instances, you can change the product type between Yitian Edition and Standard Edition.

  • Limits on legacy instance types: You cannot directly change the configurations of a legacy instance. You must first upgrade the instance to a current instance type. Then, you can change its configurations.

  • Other limits: You can change only the items listed in Instance configuration changes.

Impacts

Instance storage type

Configuration change item

Impact

Instances that use local disks with enhanced performance

Instance type, edition, or storage space

If you change the instance type or edition when no local resources are available, data is automatically migrated. After the migration is complete, a switchover is performed based on the switchover time that you specify. During the migration, incremental data synchronization is performed.

Important
  • The configuration change causes an instance switchover. The switchover typically takes about 30 seconds. The actual duration may be longer if the client is not properly configured or the driver version is earlier than the required version. Change the configurations during off-peak hours and make sure that your application is configured with an automatic reconnection mechanism.

  • During the instance switchover, most operations related to databases, accounts, and networks cannot be performed. For more information, see Impacts of an instance switchover.

Instances that use disks

Instance type or edition

The configuration change takes several minutes. The duration is not affected by the data volume.

Important
  • The configuration change causes an instance switchover. The switchover typically takes about 30 seconds. The actual duration may be longer if the client is not properly configured or the driver version is earlier than the required version. Change the configurations during off-peak hours and make sure that your application is configured with an automatic reconnection mechanism.

  • During the instance switchover, most operations related to databases, accounts, and networks cannot be performed. For more information, see Impacts of an instance switchover.

Storage space

Note

If a snapshot is being created for a disk, the task to expand the disk or change the performance level of the disk is performed after the snapshot is created.

Note
  • You do not need to manually restart the instance after a configuration change. The stored data is not lost.

  • The instance ID and endpoint do not change. However, if the instance is migrated across hosts, the IP address that corresponds to the endpoint changes. We recommend that you use the endpoint to connect to the database from your application.

Billing rules

For more information, see Billing rules for configuration changes.

Procedure

Important

After you submit a configuration change order, you cannot cancel it. Carefully evaluate your business requirements before you change the configurations.

  1. Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.

  2. In the Configuration Information area, click Change Specifications.

  3. (This step is required for subscription instances only.) In the dialog box that appears, select a change method and click Next.

    The following table describes the methods.

    Upgrade or Downgrade: The new configuration takes effect immediately after the change. Both subscription instances and pay-as-you-go instances support immediate upgrades or downgrades.

    After you submit the configuration change task, the system synchronizes the disk data to a new instance. At the specified switchover time, the system points the original instance ID and endpoint to the new instance. The instance ID and endpoint do not change.

  4. Modify the instance configurations.

    Note
    • All instance types support changes to instance types and storage space. For a legacy instance type, you must first upgrade the instance to a current instance type before you can expand its storage space.

    • You can scale in the storage space of High-availability Edition instances that use local disks with enhanced performance and Basic Edition or High-availability Edition instances that use disks (excluding standard SSDs). You cannot scale in the storage space of other instances.

    • You can change an ApsaraDB RDS for MySQL 5.6 instance of RDS Enterprise Edition to High-availability Edition.

    • You can upgrade an ApsaraDB RDS for MySQL 5.7 instance of Basic Edition to a High-availability Edition instance that uses local disks with enhanced performance.

    • You can change an ApsaraDB RDS for MySQL 8.0 or 5.7 instance of High-availability Edition that uses ESSDs to a Cluster Edition instance.

    • On the Upgrade/Downgrade Instance page, the instance type is set to Current Type by default. Verify that the parameters of the new instance type meet your requirements to prevent potential issues.

  5. You can select Switch Time.

    • Execute Immediately: The switch occurs immediately after data migration.

    • Switch Within Maintenance Window: The switch occurs within the maintenance window.

    Important
    • If you select Switch Within Maintenance Window, the instance will remain in the Upgrading or Downgrading status until the switch is complete. During this period, you cannot perform instance-level operations, such as upgrades, downgrades, version upgrades, or cross-zone migrations.

    • If you only increase the storage space or change the ESSD storage type, the change takes effect immediately and typically does not affect your services. You do not need to select Switch Within Maintenance Window.

    • A Basic Edition instance has only one database node and does not have a secondary node for hot backup. Therefore, a service interruption occurs when you change the configurations of the node. Change the configurations during off-peak hours to prevent business interruptions.

    • For instances that are not of Basic Edition, one or two instance switchovers may occur when the configuration change takes effect. This can cause a transient connection. We recommend that you change configurations during off-peak hours or ensure that your application is configured with an automatic reconnection mechanism. For more information about the impacts of an instance switchover, see Impacts of an instance switchover.

  6. On the Change Specifications page, confirm the changes to the instance, click Confirm Order, and complete the payment.

    Warning
    • After you submit a configuration change order, you cannot cancel it. Carefully evaluate your business requirements before you change the configurations.

    • To ensure that the configuration change completes successfully, do not perform DDL operations from the time you submit the order to the time the configuration change is complete.

FAQ

Disk scale-out and scale-in

  • Q: Why is my instance still locked after I expanded its disk?

    A: An instance that is locked because its disk is full is automatically unlocked after the disk scale-out task is complete. On the Basic Information page of the instance, you can click the button button in the upper-right corner to open the Task List page and view the progress of the scale-out task.

  • Q: Why does a transient connection occur when I expand the storage space?

    A: Storage expansion requires an instance switchover. For more information about the impacts of the transient connection, see Impacts of an instance switchover.

  • Q: Is the free backup quota increased after I expand the disk?

    A: Yes, it is. For more information, see Free backup quota.

Storage type change

Storage space management

  • Q: What do I do if the "Insufficient Inventory" message is displayed when I upgrade the storage space?

    A: We recommend that you migrate the instance to another zone and then expand the storage space. After the migration, the endpoint remains unchanged, but the IP address changes. You must configure an automatic reconnection mechanism for your application.

  • Q: If I only expand the storage space, do I need to migrate data to a new instance?

    A: In most cases, when you expand the storage space of an instance that uses disks and is not of Basic Edition, no transient connection occurs. When you expand the storage space of an instance that uses local disks with enhanced performance, one of the following situations occurs:

    • The host has sufficient storage: The storage space is directly expanded without affecting the instance.

    • The host has insufficient storage: A new primary instance and a new secondary instance are automatically created, and data is synchronized to the new instances. A transient connection that lasts about 30 seconds occurs during the switchover.

    Note

    You cannot query the remaining storage space of the host where the instance is deployed.

  • Q: If I delete a database from an ApsaraDB RDS for MySQL instance, is the disk space released?

    A: Yes, the space is released if you execute the DROP statement. If you execute the DELETE statement, fragmentation occurs and the disk space is not released.

Impacts of configuration upgrades

  • Q: If I upgrade the CPU, memory, and disk at the same time, how long will the service be unavailable?

    A: The service is unavailable for several minutes regardless of whether you upgrade a single item or multiple items. During the upgrade, an instance switchover or restart may occur, and most operations related to databases, accounts, and networks cannot be performed. We recommend that you perform configuration changes within the maintenance window. For more information about the business impacts of each configuration change, see Impacts of configuration changes.

  • Q: What factors affect the duration of a configuration change?

    A: See What factors affect the duration of a configuration change for an ApsaraDB RDS for MySQL instance?.

  • Q: Does a configuration change affect online services?

    A: See the Impacts section of this topic.

Read-only instances

  • Q: If I upgrade the primary instance, are the read-only instances also upgraded?

    A: No, they are not. You must manually upgrade the configurations of the read-only instances.

  • Q: Does expanding the storage space of the primary instance affect the primary/secondary replication of read-only instances?

    A: No, it does not.

Connections and network

  • Q: Does the endpoint change after a configuration change?

    A: No, it does not. The endpoint (for example, rm-bpxxxxx.mysql.rds.aliyuncs.com) remains unchanged, but the IP address may change. We recommend that you use the endpoint instead of the IP address in your application.

  • Q: How do I configure an automatic reconnection mechanism for my application?

    A: For Java applications, we recommend that you set the TTL to a value no more than 60 seconds. This ensures that when the IP address of the endpoint changes, the application can query DNS again to obtain and use the new IP address. For more information about how to set the TTL in Java, see the official JDK documentation.

Instance types and billing

  • Q: Can I change a regular instance to a serverless instance?

    A: You cannot change a subscription instance to a serverless instance. To use a serverless instance, you can create one. For more information, see Create a serverless ApsaraDB RDS for MySQL instance.

  • Q: How am I charged for automatic storage expansion?

    A: The automatic storage expansion feature is disabled by default and is free of charge. After you enable this feature, you are charged in the same way as for manual expansion. For more information, see Change instance configurations.

  • Q: I mistakenly downgraded the configurations and then immediately upgraded them to the original configurations. Why is the difference between the refund and the fee so large?

    A: The instance may have been purchased during a promotional event. If you upgrade the instance after the event, no discount is applied and the price increases.

Automatic expansion and scale-in

  • Q: What are the rules for automatic storage expansion?

    A: For more information, see Enable automatic storage expansion.

  • Q: What are the impacts of scaling in the storage space of an instance that uses disks?

    A: A transient connection occurs when you scale in the storage space of an instance that uses disks. For more information, see Scale in the storage space of an instance that uses disks.

  • Q: Can I scale in an instance that uses local disks with enhanced performance?

    A: Yes, you can. When the instance is running, click Change Configuration and then select Downgrade.

Zone migration

Q: How do I change a single-zone deployment to a multi-zone deployment?

A: For more information, see Migrate an instance across zones.

Related APIs

API

Description

ModifyDBInstanceSpec

Changes the configurations of an ApsaraDB RDS instance.