Updated on 2024-07-05 GMT+08:00

CCE Advanced HPA

CCE Advanced HPA (cce-hpa-controller) is an in-house add-on, which can be used to flexibly scale in or out Deployments based on metrics such as CPU usage and memory usage.

Main Functions

  • Scaling can be performed based on the percentage of the current number of pods.
  • The minimum scaling step can be set.
  • Different scaling operations can be performed based on the actual metric values.

Constraints

To use CCE Advanced HPA, install an add-on that provides metrics APIs. Select one of the following add-ons based on your cluster version and actual requirements.

Installing the Add-on

  1. Log in to the CCE console and click the cluster name to access the cluster console. In the navigation pane on the left, choose Add-ons. Locate CCE Advanced HPA on the right and click Install.
  2. On the Install Add-on page, configure the specifications.

    Table 1 CCE Advanced HPA specifications

    Parameter

    Description

    Pods

    Number of pods for the add-on.

    High availability is not possible if there is only one pod. If an error occurs on the node where the pod runs, the add-on will fail.

    Containers

    CPU and memory quotas of the container allowed for the selected add-on specifications.

    You can adjust the container specifications of an add-on instance as required.

  3. Click Install.

Components

Table 2 cce-hpa-controller components

Component

Description

Resource Type

customedhpa-controller

CCE auto scaling component, which scales in or out Deployments based on metrics such as CPU usage and memory usage

Deployment