Updated on 2025-08-05 GMT+08:00

Automatically Scaling Up Storage Space

You can enable storage autoscaling for GeminiDB HBase instances. When storage usage reaches the limit, autoscaling is triggered.

You can enable Auto Scale:

  1. When you create an instance. For details, see Getting to Know GeminiDB HBase API.
  2. After you create an instance

This section describes how to configure Auto Scale after an instance is created.

  • If you enable Auto Scale using a Huawei Cloud account, no additional configuration is required.
  • If you enable Auto Scale as an IAM user first time, you need to obtain the permission to create an agency.

Configuring Permissions

If you are using an IAM user, perform the following operations to configure GeminiDB and IAM permissions before you enable storage autoscaling:
  1. Configure the GeminiDB FullAccess permission.
  2. Configure fine-grained permissions for IAM.

    For details about how to configure IAM permissions, see Creating a Custom Policy.

    If you use the JSON view to configure a custom policy, the policy content is as follows:
    {
         "Version":"1.1",
         "Statement":[
             {
                 "Effect":"Allow",
                 "Action":[
                     "iam:permissions:listRolesForAgencyOnProject",
                     "iam:permissions:grantRoleToGroupOnProject",
                     "iam:agencies:createAgency",
                     "iam:agencies:listAgencies",
                     "iam:roles:listRoles",
                     "iam:roles:createRole"
                 ]
             }
         ]
    }
  3. Create a user group and assign permissions.

    You can create a user group on the IAM console and grant it custom permissions created in 2 and the security administrator role.

  4. Create an IAM user and add it to a user group.

    Log in to the IAM console using a Huawei Cloud account or as an IAM user, locate the IAM user that the target instance belongs to, and add it to the user group created in 3. The IAM user will inherit permissions of the user group.

Usage Notes

  • Autoscaling is available only when your account balance is sufficient.
  • The instance is in the Available status.
  • Once Auto Scale is enabled, an agency will be created and fees will be automatically deducted.

Automatically Scaling Up Storage of a Single Instance

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, click the target instance. The Basic Information page is displayed.
  4. In the Storage Space area, click Auto Scale.

    Figure 1 Auto Scale

  5. Toggle on Auto Scale and specify the parameters below.

    Figure 2 Configuring autoscaling parameters

    Table 1 Description

    Parameter

    Description

    Auto Scale

    If you toggle on this switch, autoscaling is enabled.

    Trigger If Available Storage Drops To

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

    Increase By

    Percentage that your instance storage will be scaled up at. The value can be 10%, 15%, or 20%. If the value is not a multiple of 10, it is rounded up. At least 100 GB is added each time.

    Storage Limit

    Limit of storage (GB) that can be automatically scaled up to.

    The value must be no less than the storage of your instance and cannot exceed the maximum storage supported by your instance.

  6. Click OK.

Automatically Scaling Up Storage of Multiple Instances In Batches

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB.
  3. Select instances and click Auto Scale.

    Figure 3 Auto Scale

  4. Select an instance, toggle on Auto Scale, and specify the parameters below.

    Figure 4 Batch Auto Scale

    Table 2 Description

    Parameter

    Description

    Auto Scale

    If you toggle on this switch, autoscaling is enabled.

    Trigger If Available Storage Drops To

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

    Increase By

    Percentage that your instance storage will be scaled up at. The value can be 10%, 15%, or 20%. If the value is not a multiple of 10, it is rounded up. At least 100 GB is added each time.

    Storage Limit

    The value cannot be specified. By default, the storage is scaled up to the maximum defined by your instance specifications.

  5. Click OK.