Help Center/ GaussDB/ User Guide/ Instance Modifications/ Scaling Up Storage Space/ Manually Scaling Up Storage Space for an Instance
Updated on 2024-11-11 GMT+08:00

Manually Scaling Up Storage Space for an Instance

Scenarios

As more data is added, you may start to run out of space. If the kernel system detects that the storage usage exceeds the predefined threshold, the instance is set to read-only and no data can be written to it. (The default threshold is 85%. You can modify the instance parameter cms:datastorage_threshold_value_check to change the usage threshold.) This section describes how to scale up the storage space of a DB instance. Services will not be interrupted during storage scale-up.

Precautions

  • Within the maximum allowed range, the storage usage cannot exceed the predefined threshold (85% by default) after the scale-up.
  • If any node becomes faulty, contact the O&M engineers for troubleshooting before the scale-up.
  • The storage space must be a multiple of (Number of shards x 4 GB).
  • A single shard can hold up to 24 TB
  • If a DB instance is unavailable because the storage space is used up, you can scale up the storage space.

Constraints

  • You can scale up storage space only when your account balance is greater than or equal to $0 USD.
  • The maximum allowed storage for a single shard is 24 TB by default. There is no limit on the number of scale-ups.
  • The DB instance is in the Scaling up state when its storage space is being scaled up and the backup services are not affected.
  • Do not reboot or delete the instance whose storage is being scaled up.
  • Storage space can only be scaled up, not down.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. On the Instances page, locate the instance you want to scale up and click More > Scale Storage Space in the Operation column.

    Alternatively, click the instance name to go to the Basic Information page. In the Storage section of the Storage & Backup area, click Scale.

    Figure 1 Scaling up storage

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

    Figure 2 Setting the space size

    When you scale up the storage space, ensure that the usage of the new storage space is less than the predefined threshold (85% by default). Once the storage usage of an instance reaches or exceeds the specified threshold, the instance cannot process write operations and becomes read-only.

  6. Confirm settings.

    • If you need to modify your settings, click Previous.
    • If the settings are correct, click Submit.

  7. View the storage scale-up results.

    During the scale-up, the status of the instance on the Instances page is Scaling up. This process may take 3 to 5 minutes. Once the scale-up is complete, click the instance name to go the Basic Information page and you can see the new storage space.