Updated on 2024-02-22 GMT+08:00

Scaling up Storage Space

Scenarios

If the original storage space is insufficient as your services grow, you can scale up storage space of your DB instance.

If your storage space usage reaches up to 95% for a disk less than 1 TB or the remaining space becomes 50 GB for a disk no less than 1 TB, the DB instance status becomes Storage full and data cannot be written to databases. In this case, scale up storage space to make the DB instance preserve at least 15% of its capacity to work properly.

For example, if a DB instance has 100 GB of storage and its status is Storage full, data can be written to the instance only after you increase the storage by at least (100/85% - 100) GB.

During the scale-up period, services are not interrupted.

Constraints

  • The maximum allowed storage is 4,000 GB. There is no limit on the number of scale-ups.
  • The DB instance is in Scaling up state when its storage space is being scaled up and the backup services are not affected.
  • For primary/standby DB instances, scaling up the primary DB instance will cause the standby DB instance to also be scaled up accordingly.
  • You cannot reboot or delete a DB instance that is being scaled up.
  • Storage space can only be scaled up, not down.
  • If you scale up a DB instance with the disk encrypted, the expanded storage space will be encrypted using the original encryption key.

Scaling up a Primary DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, locate the target DB instance and choose More > Scale Storage Space in the Operation column.

    You can also perform the following operations to scale up storage space:

    • Click the target DB instance to enter the Basic Information page. In the Storage Space area, click Scale.

  4. On the displayed page, specify the new storage space and click Next.

    The minimum increment for each scaling is 10 GB.

  5. Confirm specifications.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify the settings, click Submit for a pay-per-use instance or click Pay Now for a yearly/monthly instance.

  6. View the scale-up result.

    Scaling up storage space takes 3-5 minutes. During this time period, the status of the DB instance on the Instances page will be Scaling up. After a while, click the DB instance and view the new storage space on the displayed Basic Information page to verify that the scale-up is successful.

    You can view the detailed progress and result of the task on the Task Center page. For details, see Task Center.

Scaling up a Read Replica

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

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, locate the target DB instance and click in front of it. Locate the read replica to be scaled and choose More > Scale Storage Space in the Operation column.

    You can also perform the following operations to scale up storage space:

    • Click the read replica to enter the Basic Information page. In the Storage Space area, click Scale.

  4. On the displayed page, specify the new storage space and click Next.

    The minimum increment for each scaling is 10 GB.

  5. Confirm specifications.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify your settings and the read replica uses pay-per-use billing, click Submit.

  6. View the scale-up result.

    Scaling up storage space takes 3-5 minutes. During this time period, the status of the read replica on the Instances page will be Scaling up. After a while, click the read replica and view the new storage space on the displayed Basic Information page to verify that the scale-up is successful.

    You can view the detailed progress and result of the task on the Task Center page. For details, see Task Center.