Updated on 2025-01-03 GMT+08:00

Manually Scaling Down Disk Space

Scenarios

As data volumes decrease, you can scale down disk space to avoid low database node utilization and resource waste.

Usage Notes

  • When you scale down storage space of your instance, make sure that new storage space is 25% more than the used space and rounded up.
  • Storage scaling does not interrupt your services. After storage space is scaled, you do not need to restart your instance.

Setting an Instance Status to Read-only

To ensure that the GeminiDB Redis instance can still run properly when the storage space is about to be used up, the database is set to read-only, and data cannot be modified. If this happens, you can scale up the storage to restore the database status to read/write.

Table 1 Setting an instance status to read-only

Storage Space

Description

< 600 GB

  • When the storage usage reaches 97%, the instance is read-only.
  • When the storage usage decreases to 85%, the read-only status is automatically disabled for the instance.

≥ 600 GB

  • When the remaining storage space is less than 18 GB, the instance is read-only.
  • When the remaining storage space is greater than or equal to 90 GB, the read-only status is automatically disabled for the instance.

Method 1

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the Instances page, locate the target instance and choose More > Scale Storage Space in the Operation column.

    Figure 1 Scale Storage Space

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

    Figure 2 Scale Storage Space

    Select at least 1 GB each time you scale up the storage, and the storage size must be an integer.

  5. On the displayed page, confirm the storage space.

    • Yearly/Monthly
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit and complete the payment.
    • Pay-per-use
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit.

  6. Check the results.

    • When the scaling task is ongoing, the instance status is Scaling storage space.
    • After the scaling task is complete, the instance status becomes Available.
    • Click the instance name. In the Specification Information area on the Basic Information page, you can view the new storage space.

Method 2

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the Instances page, click the target instance.
  4. In the Specification Information area on the Basic Information page, click Scale.

    Figure 3 Scaling storage

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

    Figure 4 Scaling storage

    Select at least 1 GB each time you scale up the storage, and the storage size must be an integer.

  6. On the displayed page, confirm the storage space.

    • Yearly/Monthly
      • To modify your settings, click Previous.
      • If you do not need to modify your settings, click Next and complete the payment.
    • Pay-per-Use
      • To modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit.

  7. Check the results.

    • When the scaling task is ongoing, the instance status is Scaling storage space.
    • After the scaling task is complete, the instance status becomes Available.
    • Click the instance name. In the Specification Information area on the Basic Information page, you can view the new storage space.