Configuring Auto Scale

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

You can enable autoscaling:

  1. When creating an instance

    For details, see Creating a GeminiDB Cassandra Instance.

  2. After creating an instance

For details, see operations in this section.

 
Note

  • If you enable autoscaling as a domain user, no additional configuration is required.

  • If you enable autoscaling as an IAM user first time, you need to temporarily assign the permission of creating an agency to the user.

Permission Configuration

If you are using an IAM user, configure the following permissions before enabling autoscaling:

  1. GeminiDB FullAccess

  2. IAM fine-grained permission

    For details, 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. Creating a User Group and Assigning Permissions

    You can create a user group on the IAM console and assign it custom permissions created in 2 and system role Security Administrator.

  4. Adding Users to or Removing Users from a User Group

    Log in to the IAM console as a domain or 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

  • The instance is in the Available status.

  • Once autoscaling 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 GeminiDB console.

  2. On the Instances page, click the target instance. The Basic Information page is displayed.

  3. In the Storage Space area, click Auto Scale.

    **Figure 1** Auto Scale

    Figure 1 Auto Scale

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

    **Figure 2** Configuring autoscaling

    Figure 2 Configuring autoscaling

    Table 1 Parameter 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 this value or the available storage space drops to 10 GB, autoscaling is triggered.

    Increase By

    Percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. If the value is not a multiple of 10, the value is rounded up. At least 100 GB is added each time.

    Storage Limit

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

    The value must be no less than the current storage of your instance and cannot exceed the storage space upper limit defined by your instance specifications.

  5. Click OK.

Automatically Scaling Up Storage of Multiple Instances In Batches

  1. Log in to the GeminiDB console.

  2. Select instances and click Auto Scale.

    **Figure 3** Auto Scale

    Figure 3 Auto Scale

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

    **Figure 4** Batch Auto Scale

    Figure 4 Batch Auto Scale

    Table 2 Parameter 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 this value or the available storage space drops to 10 GB, autoscaling is triggered.

    Increase By

    Percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. At least 100 GB is added each time.

    Storage Limit

    This parameter cannot be customized. By default, the storage is scaled up the maximum of the selected instance.

  4. Click OK.