Updated on 2024-09-27 GMT+08:00

Modifying an HPA Policy

You can edit an existing HPA policy and reconfigure policy parameters.

Prerequisites

You have configured an HPA policy. For details, see Configuring an HPA Policy.

Modifying an HPA Policy

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Scaling page.

    • On the Application Management page, click the application to which the component belongs, click the target component in Component List, and choose Scaling in the left navigation pane.
    • On the Component Management page, click the target component and choose Scaling in the left navigation pane.

  3. On the Scaling page, choose Policy, click Edit Policy, and reconfigure parameters.

    1. Cooldown Period

      Change the scale-out/scale-in cooldown period.

    2. Pod Range

      Change the minimum and maximum numbers of pods.

    3. Triggering Condition

      You can change trigger condition on the UI or by editing the YAML file.

      • UI

        Change Desired Value and Threshold (scale-in and scale-out thresholds) of CPU usage and Memory usage.

      • YAML

        You can use the YAML format to customize metric parameters and support more metrics such as pods, objects, and external.

        To configure custom metric parameters by using YAML, ensure that the prometheus add-on has been installed for the CCE cluster.

        Install the prometheus add-on for the CCE cluster. For details, see prometheus.

  4. Click OK.