- Function Overview
- Product Bulletin
- Service Overview
- Billing
- Getting Started
-
User Guide
- Clusters
- Workloads
- Network
- Storage
- O&M
- Namespaces
- ConfigMaps and Secrets
- Auto Scaling
- Add-ons
- Helm Chart
- Permissions
- Settings
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
APIs
- Autopilot Cluster Management
- Add-on Management for Autopilot Clusters
-
Autopilot Cluster Upgrade
- Upgrading a Cluster
- Obtaining Cluster Upgrade Task Details
- Retrying a Cluster Upgrade Task
- Obtaining a List of Cluster Upgrade Task Details
- Performing a Pre-upgrade Check for a Cluster
- Obtaining Details About a Pre-upgrade Check Task of a Cluster
- Obtaining a List of Pre-upgrade Check Tasks of a Cluster
- Performing a Post-upgrade Check for a Cluster
- Backing Up a Cluster
- Obtaining a List of Cluster Backup Task Details
- Obtaining the Cluster Upgrade Information
- Obtaining a Cluster Upgrade Path
- Obtaining the Configuration of Cluster Upgrade Feature Gates
- Enabling the Cluster Upgrade Process Booting Task
- Obtaining a List of Upgrade Workflows
- Obtaining Details About a Specified Cluster Upgrade Booting Task
- Updating the Status of a Specified Cluster Upgrade Booting Task
- Quota Management for Autopilot Clusters
- Tag Management for Autopilot Clusters
-
Chart Management for Autopilot Clusters
- Uploading a Chart
- Obtaining a Chart List
- Obtaining a Release List
- Creating a Release
- Updating a Chart
- Deleting a Chart
- Updating a Release
- Obtaining a Chart
- Deleting a Release
- Obtaining a Release
- Downloading a Chart
- Obtaining Chart Values
- Obtaining Historical Records of a Release
- Obtaining the Quota of a User Chart
- Kubernetes APIs
- Permissions and Supported Actions
- Appendix
-
FAQs
- Billing
- Workloads
- Network Management
-
Storage
- Can PVs of the EVS Type in a CCE Autopilot Cluster Be Restored After They Are Deleted or Expire?
- What Can I Do If a Storage Volume Fails to Be Created?
- Can CCE Autopilot PVCs Detect Underlying Storage Faults?
- How Can I Delete the Underlying Storage If It Remains After a Dynamically Created PVC is Deleted?
- Permissions
- General Reference
Copied.
Managing Workload Scaling Policies
Scenario
You can view an HPA policy, edit an HPA policy on the console, edit an HPA policy using YAML, clone an HPA policy, and delete an HPA policy.
Viewing an HPA Policy
You can view the rules, status, and events of an HPA policy and handle exceptions based on the error information displayed.
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Policies. On the HPA Policies tab, locate the HPA policy you want to view and click
next to the policy.
- In the expanded area, choose View Events in the Operation column. If the policy malfunctions, locate and rectify the fault based on the error message displayed on the page.
NOTE:
You can also view an HPA policy on the workload details page.
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Workloads. Click the workload name to view its details.
- On the workload details page, switch to the Policies tab to view the HPA policy. You can also view the policies you configured in Workload Scaling.
Table 1 Event types and names 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 workload.
Editing an HPA Policy on the Console
To edit an HPA policy on the console, take the following steps:
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Policies. On the HPA Policies tab, locate the HPA policy you want to edit and choose More > Edit in the Operation column.
- On the Edit HPA Policy page, modify the parameter settings based on Table 1.
- Click OK.
Editing an HPA Policy Using YAML
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Policies. On the HPA Policies tab, locate the HPA policy you want to edit and click Edit YAML in the Operation column.
- In the Edit YAML dialog box displayed, edit or download the YAML file.
Cloning an HPA Policy
Copy the configuration of an existing HPA policy to create a new one, and associate it with a different namespace or workload.
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Policies. On the HPA Policies tab, locate the HPA policy you want to edit and choose More > Clone in the Operation column.
- On the Create HPA Policy page, set basic policy information by referring to 3.
- Click OK.
Deleting an HPA Policy
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane on the left, choose Policies. On the HPA Policies tab, locate the HPA policy you want to edit and choose More > Delete in the Operation column.
- In the dialog box displayed, click Yes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot