Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Managing Workload Scaling Policies

Updated on 2024-12-04 GMT+08:00

Scenario

After an HPA or CustomedHPA policy is created, you can update and delete the policy, as well as edit the YAML file.

Checking an HPA Policy

You can view the rules, status, and events of an HPA policy and handle exceptions based on the error information displayed.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. On the page displayed, click the HPA Policies tab and then next to the target HPA policy.
  3. 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 the created HPA policy on the workload details page.

    1. Log in to the CCE console and click the cluster name to access the cluster console.
    2. In the navigation pane, choose Workloads. Click the workload name to view its details.
    3. On the workload details page, switch to the Auto Scaling tab page to view the HPA policies or CustomedHPA policies. You can also view the scaling policies you configured on the Policies page.
    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 service.

Viewing a CustomedHPA Policy

You can view the rules and latest status of a CustomedHPA policy and rectify faults based on the error information displayed.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. On the page displayed, click the CustomHPA Policies tab and then next to the target CustomHPA policy.
  3. In the expanded area, if the policy is abnormal on the Rules tab page, click Details in Latest Status and locate the fault based on the information displayed.

    NOTE:

    You can also view the created HPA policy on the workload details page.

    1. Log in to the CCE console and click the cluster name to access the cluster console.
    2. In the navigation pane, choose Workloads. Click the workload name to view its details.
    3. On the workload details page, switch to the Auto Scaling tab page to view the HPA policies or CustomedHPA policies. You can also view the scaling policies you configured on the Policies page.

Editing an HPA or CustomedHPA Policy

An HPA policy is used as an example.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. On the page displayed, click the HPA Policies tab. Locate the row containing the target policy and choose More > Edit in the Operation column.
  3. On the Edit HPA Policy page, configure policy parameters listed in Table 1.
  4. Click OK.

Editing the YAML File (HPA Policy)

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. On the page displayed, click the HPA Policies tab. Locate the row containing the target policy and click Edit YAML in the Operation column.
  3. In the dialog box displayed, edit or download the YAML file.

Viewing the YAML File (CustomedHPA Policy)

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. On the page displayed, click the CustomedHPA Policies tab, locate the row containing the target policy, and choose More > View YAML in the Operation column.
  3. In the dialog box displayed, copy and download the YAML file but you are not allowed to modify it.
  4. Click the close button in the upper right corner.

Deleting an HPA or CustomedHPA Policy

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Policies. Choose More > Delete in the Operation column of the target policy.
  3. In the dialog box displayed, click Yes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback