Horizontal Pod Autoscaling (HPA) in Kubernetes implements horizontal scaling of pods. In a CCE HPA policy, you can configure different cooldown time windows and scaling thresholds for different applications based on the Kubernetes HPA.
For clusters of v1.19.10 and later, if an HPA policy is used to scale out a workload with EVS volume mounted, a new pod cannot be started because EVS disks cannot be attached.
This section describes only HPA policies. To enable CronHPA, see CronHPA Policies.
Parameter |
Description |
---|---|
Pod Range |
Minimum and maximum numbers of pods. When a policy is triggered, the workload pods are scaled within this range. |
Cooldown Period |
Interval between a scale-in and a scale-out. The unit is minute. The interval cannot be shorter than 1 minute. This parameter is supported only in clusters of v1.15 to v1.23. This parameter indicates the interval between consecutive scaling operations. The cooldown period ensures that a scaling operation is initiated only when the previous one is completed and the system is running stably. |
Scaling Behavior |
This parameter is supported only in clusters of v1.25 or later.
|
System Policy |
|
Custom Policy (supported only in clusters of v1.15 or later) |
NOTE:
Before creating a custom policy, install an add-on that supports custom metric collection (for example, Prometheus) in the cluster. Ensure that the add-on can collect and report the custom metrics of the workloads.
|