Updated on 2024-02-08 GMT+08:00

Configuring Autoscaling

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

You can enable storage autoscaling when or after you create an instance. For details about how to enable storage autoscaling when you create an instance, see Step 1: Buy an Instance.

This section describes how to configure storage autoscaling after an instance is created.

Configuring Permissions

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

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

    {
         "Version":"1.1",
         "Statement":[
             {
                 "Effect":"Allow",
                 "Action":[
                     "iam:permissions:*",
                     "iam:agencies:*",
                     "iam:roles:*",
                     "iam:quotas:*"
                 ]
             }
         ]
     }
  2. Create a user group and assign permissions to it.

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

  3. Add a user to a user group.

    Log in to the IAM console using the major account or an account with the IAM permissions, locate the IAM user that the target instance belongs to, and add it to the user group created in 2. The IAM user will inherit permissions of the user group.

Precautions

  • Autoscaling is available only when your account balance is sufficient.
  • Autoscaling is currently in open beta testing. If you need to use this function, contact customer service to apply for it.
  • The instance is in the Available status.
  • Once autoscaling is enabled, an agency will be created and fees will be automatically deducted.
  • Only general-purpose GeminiDB Redis instances are supported.
  • When the storage usage is greater than 98%:
    • If the total storage is less than 600 GB, the storage usage after autoscaling (used storage space/total storage space) will be less than 85%. For example, if the total storage is 500 GB and the used storage space is 495 GB, the storage usage (495/total storage space) after autoscaling will be less than 85%.
    • If the total storage is greater than or equal to 600 GB, the system automatically scales up the storage by over 90 GB. For example, if the total storage is 700 GB, the storage after autoscaling will be greater than 790 GB (700 + 90).
  • Changing the instance class or the number of nodes will affect the upper limit of the storage space.

Autoscaling of a Single Instance

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the Instances page, click the name of the target instance to go to the Basic Information page.
  4. In the Storage Space area, click Autoscaling.

    Figure 1 Autoscaling

  5. Toggle on Autoscaling and specify the trigger condition and increment.

    Figure 2 Setting autoscaling parameters

    Table 1 Parameter description

    Parameter

    Description

    Autoscaling

    Autoscaling toggle button.

    Storage Usage

    When the storage usage is greater than or equal to the threshold you set, the system automatically scales up your instance storage.

    Increase by

    The percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. Select an appropriate one. At least 1 GB is required each time.

  6. Click OK.

Autoscaling Storage Space of Instances in Batches

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the DB instance list page, select the instances you want to enable autoscaling for and click Auto Scale.

    Figure 3 Autoscaling

  4. Toggle on Autoscaling and specify the trigger condition and increment.

    Figure 4 Setting autoscaling parameters

    Table 2 Parameter description

    Parameter

    Description

    Autoscaling

    Autoscaling toggle button.

    Storage Usage

    When the storage usage is greater than or equal to the threshold you set, the system automatically scales up your instance storage.

    Increase by

    The percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. Select an appropriate one. At least 1 GB is required each time.

  5. Click OK.