CCE Advanced HPA (cce-hpa-controller) is a CCE-developed add-on, which can be used to flexibly scale in or out Deployments based on metrics such as CPU usage and memory usage.
Replicas: HA is not possible with just one replica, so one replica is used only for verification. In commercial scenarios, you can configure multiple replicas based on the cluster specifications.
CPU Quota and Memory Quota: The resource quotas of a component are affected by how many containers and scaling policies in a cluster. For typical situations, it is recommended that you configure 500m CPU cores and 1,000 MiB of memory for every 5,000 containers in a cluster. As for scaling policies, 100m CPU cores and 500 MiB of memory should be configured for every 1,000 of them.
To enable AHPA, make sure to install the Cloud Native Cluster Monitoring add-on and enable the function that reports monitoring data to AOM. For details, see Cloud Native Cluster Monitoring.
Parameter |
Description |
|---|---|
Multi-AZ Deployment |
|
Node Affinity |
|
Toleration |
Using both taints and tolerations allows (not forcibly) the add-on Deployment to be scheduled to a node with the matching taints, and controls the Deployment eviction policies after the node where the Deployment is located is tainted. The add-on adds the default tolerance policy for the node.kubernetes.io/not-ready and node.kubernetes.io/unreachable taints, respectively. The tolerance time window is 60s. For details, see Configuring Tolerance Policies. |
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 |
Add-on Version |
Supported Cluster Version |
New Feature |
|---|---|---|
1.5.3 |
v1.21 v1.23 v1.25 v1.27 v1.28 v1.29 v1.30 |
AHPA is available. |
1.4.3 |
v1.21 v1.23 v1.25 v1.27 v1.28 v1.29 |
Fixed some issues. |
1.3.43 |
v1.21 v1.23 v1.25 v1.27 v1.28 |
Fixed some issues. |
1.3.42 |
v1.21 v1.23 v1.25 v1.27 v1.28 |
CCE clusters v1.28 are supported. |
1.3.14 |
v1.19 v1.21 v1.23 v1.25 v1.27 |
CCE clusters v1.27 are supported. |