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 on a Schedule
None

Scaling Your Website on a Schedule

  • 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: enable Auto Scaling from Huawei Cloud for your website for automatic scaling, and configure a scaling policy to automatically add two ECSs for your website at 23:30 on the day before the promotion.

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. In the Specifications pane, select General computing. This type of ECS provides a balance of compute, storage, and network resources and is applicable to most application scenarios. You can select multiple flavors to minimize the probability of scaling failures due to insufficient resources of a flavor.
2. Select Private image for Image. You can use the service ECS ecs-c9b4 to create a private image, and use the private image to create this AS configuration.
3. Select Encryption for data disks to improve disk data security. The system disk will not be encrypted if the image is not encrypted.
4. Select Password for Login Mode. You can also log in to an ECS using a key pair.
5. Select Do not configure for Advanced Settings.

1

Creating an AS configuration (1)

Apply for a VPC.

2

Creating an AS configuration (2)

Apply for a VPC.

View Image

Step 2: Create an AS Group

1. On the Instance Scaling page, click Create AS Group.
2. After configuring the parameters, click Create Now.

Note

1. When specifying AZ, ensure that the AZ where the service ECS resides is selected. Select Balanced for Multi-AZ Scaling Policy. When a scale-out event occurs, AS evenly distributes ECSs across the AZs you selected for high availability and reliability.

2. Set Max. Instances to 10, Expected Instances to 0, and Min. Instances to 0.
3. Select the AS configuration you created in Step 1.
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.

1

Creating an AS group (1)

Apply for a VPC.

2

Creating an AS group (2)

Apply for a VPC.

View Image

Step 3: Add an AS Policy to the AS Group

1. On the AS Groups page, locate the created AS group and click View AS Policy.
2. Select Scheduled for Policy Type.
3. Set Triggered On to 23:30 on the day before the promotion.
4. Set Scaling Action to Add 2 instances.
5. Retain the default setting for Cooldown Period.
6. Click OK.

1

Adding a scheduled policy

Apply for a VPC.

View Image

Step 4: Manually Add Instances

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

Apply for a VPC.

View Image

Step 5: View the Number of Instances

1. Before a scaling action is triggered, check that the AS group contains two ECSs and the expected number of instances is 2.

2. After a scaling action is triggered, check that the expected number of instances will change to 4 and AS will add two ECSs to the AS group based on the configured policy.

After the scaling action is complete, there will be four ECSs in the AS group, and you can cope with the increased demands with confidence.

1

Before a scaling action

Select the charging mode.

2

After a scaling action

选择实例配置

View Image

Operation Tutorials

helpcenter-videoicon Created with Sketch.

Creating an AS Group in Wizard-based Mode 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