Updated on 2023-05-15 GMT+08:00

Scenario 1: Using Auto Scaling Rules Alone

Procedure

  1. Go to the Auto Scaling page to configure auto scaling rules.

    • Configure the Default Range parameter.

      Enter a task node range, in which auto scaling is performed. This constraint applies to all scale-in and scale-out rules. The maximum value range allowed is 0 to 500.

      The value range in this example is 1 to 10.

    • Configure an auto scaling rule.

      To enable Auto Scaling, you must configure a scale-out or scale-in rule.

      1. Select Scale-Out or Scale-In.
      2. Click Add Rule.
        Figure 1 Add Rule dialog box
      3. Configure Rule Name, If, Last For, Add, and Cooldown Period. For details about auto scaling metrics, see Configuring Auto Scaling Metrics.
      4. Click OK.

        You can view, edit, or delete the rules you configured in the Scale-out or Scale-in area on the Auto Scaling page. You can click Add Rule to configure multiple rules.

  2. Click OK.

    If you want to configure an auto scaling rule for an existing cluster, select I agree to authorize MRS to scale out or in nodes based on the above rule.