Updated on 2024-04-03 GMT+08:00

Configuring Autoscaling

Scenarios

With storage autoscaling enabled, when RDS detects that you are running out of database space, it automatically scales up your storage.

Autoscaling up the storage space of a read replica does not affect that of the primary DB instance. Therefore, you can separately autoscale read replicas to meet service requirements. New storage space of read replicas after autoscaling up must be greater than or equal to that of the primary DB instance.

Constraints

  • You can enable storage autoscaling only when your account balance is greater than or equal to $0 USD.
  • The storage space can be scaled up automatically only when your instance status is Available or Storage full.
  • To enable storage autoscaling, you need to contact customer service to apply for required permissions.
  • The maximum allowed storage is 10,000 GB. It varies depending on the instance class.
  • For primary/standby DB instances, autoscaling the storage for the primary DB instance will also autoscale the storage for the standby DB instance.
  • Storage autoscaling is unavailable when the DB instance is changing instance class or rebooting.
  • If a yearly/monthly DB instance has pending orders, it will not autoscale.
  • Storage of RDS for SQL Server instances cannot be scaled down. Exercise caution when enabling autoscaling.
  • There is an upper limit on autoscaling. For example, if an instance scales out for multiple times within a short period of time due to a sharp increase of temporary databases or log files, to prevent the storage from getting full, you can shrink the databases or log files to reduce the storage usage.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, click the target DB instance or read replica (click in front of a DB instance to locate the read replica).
  5. In the Storage Space area, click Configure Autoscaling.

    Figure 1 Storage space

  6. In the displayed dialog box, set the following parameters.

    Figure 2 Configuring autoscaling
    Table 1 Parameter description

    Parameter

    Description

    Enable autoscaling

    If you turn the toggle switch on, autoscaling is enabled.

    Trigger If Available Storage Drops To

    If the available storage drops to a specified threshold or 10 GB, autoscaling is triggered.

    Autoscaling Limit

    The value range is from 40 GB to 10,000 GB. The limit must be no less than the storage of the DB instance.

  7. Click OK.