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
Help Center/ Auto Scaling/ Getting Started/ Scaling Your Website Dynamically
None

Scaling Your Website Dynamically

  • Auto Scaling (AS) adjusts compute resources based on service requirements and the policies you configure.

  • You can specify AS configurations and policies based on service requirements. These configurations and policies free you from having to repeatedly adjust resources to keep up with service changes, and help you reduce resource and labor costs.

  • Assume that your e-Commerce website runs on ECS ecs-c9b4 in Huawei Cloud. You plan to launch a big promotion at 00:00 on a certain day. To respond to the demand spike during the promotion, you can take the following measures.

Step 1: Create an AS Configuration

1. Log in to the management console.
2. Choose Service List > Compute > Auto Scaling.
3. Click Create AS Configuration.
4. Configure parameters and click Create Now.

Note

1. Set Configuration Template to Use existing ECS and select ECS ecs-c9b4. You can also create AS configuration from scratch.
2. Select Key pair for Login Mode. You can also log in to an ECS using a password.
3. Advanced Settings is optional. You can inject user data as text or file.

1

Accessing Auto Scaling

Apply for a VPC.

2

Creating an AS configuration

Apply for an ECS.

View Image

Step 2: Create an AS Group

1. On the Instance Scaling page, click Create AS Group.
2. Configure parameters and click Now.

Note

1. When specifying AZ, ensure that the AZ where ECS ecs-c9b4 resides is selected.

2. Set both Min. Instances and Expected Instances to 0 and Max. Instances to 10.

3. Select the AS configuration you created.

4. Select the VPC where ECS ecs-c9b4 resides.

5. Select Elastic load balancer for Load Balancing. Access traffic will be automatically distributed to all available ECSs in the AS group.

6. Select ECS health check for Health Check Method.

1

Creating an AS group (1)

Select the charging mode.

2

Creating an AS group (2)

Select the charging mode.

View Image

Step 3: Add an AS Policy

1. On the AS Groups page, locate the created AS group and click View AS Policy.

2. Click Add AS Policy to add an AS policy for the AS group.

Note

You can also click the AS group name, click the AS Policies tab, and then click Add AS Policy.

1

Viewing the AS policy

Select the charging mode.

2

Adding an AS policy

选择实例配置

View Image

Step 4: Configure AS Policy Parameters

1. Select Alarm for Policy Type.
2. Set Trigger Condition to Max. CPU Usage > 90%.
3. Set Scaling Action to Add 2 instances.
4. Retain the default setting for Cooldown Period.
5. Click OK.

1

Configuring AS policy parameters

Select the charging mode.

View Image

Step 5: Manually Add Instances to the AS Group

1. Click the name of the created AS group and click the Instances tab.
2. Click Add, select the instances to be added, and click OK.

Note

You can add instances to an AS group only if the AS group is enabled and has no ongoing scaling action, and the number of current instances is less than the maximum number of instances.

1

Manually adding instances to an AS group

Select the charging mode.

View Image

Step 6: View Monitoring Data

View monitoring data of the AS group. The figure on the right suggests that:
1. The AS group contained no instance after it was created. After Expected Instances was changed to 2, a scaling action was triggered and two ECSs were added to the AS group.
2. The CPU usage stayed stable.

AS monitors CPU usage in real time and performs scaling actions based on the policy you configured. This helps you save money by increasing and decreasing compute capacity as needed.

1

Viewing monitoring data

Select the charging mode.

View Image

Operation Tutorials

helpcenter-videoicon Created with Sketch.

Creating Service-Requirements-based AS for planned Expansion

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