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

Automatically Adding Instance Nodes

When an autoscaling threshold is met, GeminiDB Cassandra instance nodes can be automatically added to reduce I/O pressure.

  • 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.

    Custom policy in JSON format:
    {
         "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

  • This function is now in OBT. To use it, choose Service Tickets > Create Service Ticket in the upper right corner of the console and contact the customer service.
  • If resources in the current region are insufficient, nodes may fail to be added.
  • Autoscaling is available only when your account balance is sufficient.
  • The instance is in the Available status.
  • Once autoscaling is enabled, an agency will be created and fees will be automatically deducted.
  • Nodes can be automatically added only for instances with classic storage.

Procedure

  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 Node Information area on the Basic Information page, click Auto Scale.

    Figure 1 Auto Scale

  5. Set autoscaling triggers and thresholds listed in Table 1.

    Table 1 Description

    Parameter

    Description

    Auto Scale

    Whether autoscaling is enabled

    Percentage of Overloaded Nodes ≥

    Percentage of overloaded nodes that need to be scaled out

    Memory Usage ≥

    Memory usage of nodes for which autoscaling is triggered

    CPU Usage ≥

    CPU usage of nodes for which autoscaling is triggered

    Increase By

    Number of nodes to be added each time

    Maximum Nodes

    Maximum number of nodes that can be automatically added