El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
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
On this page

Configuring a Hybrid AS Policy

Updated on 2024-05-25 GMT+08:00

This section describes how to configure a hybrid AS policy. You can configure metrics and time segments at the same time to control instance scaling.

NOTE:

CAE instance scaling is calculated by current and expected metrics.

Expected instances = ceil [Current instances * (Current metrics/Expected metrics)] (ceil is rounded up.)

There is an error tolerance of 10% to prevent frequent fluctuation of instance quantity, so there is no scaling when Current metrics/Expected metric ranges from 0.9 to 1.1.

Application Scenario

This policy is useful for periodic resource usage, burst traffic, and typical periodic traffic, mainly used in industries such as the Internet, education, and catering.

Procedure

  1. Log in to CAE.
  2. Choose Component Configurations.
  3. Select the target component from the drop-down list in the upper part of the page.

    Figure 1 Selecting a component

  4. Click Edit in the AS Policies module.
  5. Select Hybrid and configure the policy by referring to Table 1.

    Table 1 Configuring a hybrid policy

    Parameter

    Description

    Max. Instances

    Max. number of instances that can be reached during scale-out.

    Value range: 1 to 99.

    NOTE:

    Max. Instances must be greater than Min Instances.

    Min Instances

    Min number of instances that can be reached during scale-in.

    Value range: 1 to 99.

    Metric

    • CPU usage, a preset metric in the system
    • Memory usage, a preset metric in the system
    • Custom metrics. Click Add Expected Value and select a custom metric from the drop-down list to add a custom metric. For details about how to create a custom metric, see Configuring Custom Metrics.

      You can add multiple custom metrics.

      NOTE:
      • You must enter a PromQL statement. PromQL is a built-in data query language from Prometheus, and is used to select, aggregate, and perform logical calculation on time series data. For details, see Prometheus.
      • The query result of the PromQL statement must be a single value of the vector or scalar type.
      • Upgrade the component created/upgraded before November 3, 2023 for the custom scaling policy to take effect.

    Trigger Cycle

    The policy is expected to be executed at a specified interval. Value: Every day, Every day, or Monthly.

    Trigger Time in a Day

    This parameter is mandatory when Trigger Cycle is set to Every day.

    Configure the policy triggered every day.

    For example, the number of instances remains 3 after 18:00 every day.

    Click Add Trigger Time to add more time policies.

    Trigger Time in a Week

    This parameter is mandatory when Trigger Cycle is set to Every week.

    Configure the policy triggered every week.

    For example, the number of instances remains 4 after 08:00 on every Monday.

    Click Add Trigger Time to add more time policies.

    Trigger Time in a Month

    This parameter is mandatory when Trigger Cycle is set to Monthly.

    Configure the policy triggered every month.

    For example, the number of instances remains 4 after 06:00 on the fifth day of each month.

    Click Add Trigger Time to add more time policies.

    NOTE:

    The rules of a hybrid policy are OR related. When either the time or metric policy meets the condition, scaling is triggered.

    For example, set the maximum expected CPU usage to 80 and memory usage to 70, set Trigger Cycle to Every day, and set From 18:00 and Instances 3, and From 00:00 and Instances 1. The system keeps 1 instance from 00:00 to 18:00. However, if the CPU usage of a component is greater than 80% or the memory usage is greater than 70% during this period, the system automatically increases the number of component instances.

    Figure 2 Configuring a hybrid policy

  6. (Optional) Expand Advanced Settings and configure advanced settings by referring to Table 2.

    Table 2 Configuring advanced settings

    Parameter

    Description

    Scale-out Step

    Number of pods to be added per minute.

    Value range: 1 to 99. Default value: 4.

    Stable Scale-out Window (s)

    Value range: 1 to 3600, in seconds. Default value: 0.

    Scale-in Step

    Number of pods to be reduced per minute.

    Value range: 1 to 99. Default value: 99.

    Stable Scale-in Window (s)

    Value range: 1 to 3600, in seconds. Default value: 300.

    Disable Scale-in

    Click to disable scale-in.

    Figure 3 Advanced settings

  7. Click OK.
  8. Click Activate Settings in the upper part of the page. In the dialog box displayed on the right, confirm the configurations and click OK for the configurations to take effect.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback