After an HPA policy is created, you can update, clone, edit, and delete the policy, as well as edit the YAML file.
You can view the rules, status, and events of an HPA policy and handle exceptions based on the error information displayed.
You can also view the created HPA policy on the workload details page. Log in to the CCE console, choose Workloads > Deployments or Workloads > StatefulSets in the navigation pane, and choose More > Scaling in the Operation column. On the workload details page, click the Scaling tab. You can see the Auto Scaling-HPA pane, as well as the HPA policy you have configured on the Auto Scaling page.
Event Type |
Event Name |
Description |
---|---|---|
Normal |
SuccessfulRescale |
The scaling is performed successfully. |
Abnormal |
InvalidTargetRange |
Invalid target range. |
InvalidSelector |
Invalid selector. |
|
FailedGetObjectMetric |
Objects fail to be obtained. |
|
FailedGetPodsMetric |
Pods fail to be obtained. |
|
FailedGetResourceMetric |
Resources fail to be obtained. |
|
FailedGetExternalMetric |
External metrics fail to be obtained. |
|
InvalidMetricSourceType |
Invalid metric source type. |
|
FailedConvertHPA |
HPA conversion failed. |
|
FailedGetScale |
The scale fails to be obtained. |
|
FailedComputeMetricsReplicas |
Failed to calculate metric-defined replicas. |
|
FailedGetScaleWindow |
Failed to obtain ScaleWindow. |
|
FailedRescale |
Failed to scale the service. |
An HPA policy is used as an example.