Got it

A guide on How to setup Auto Scaling Group

Latest reply: May 14, 2022 08:11:29 362 11 8 0 0

What is an Auto Scaling group?


An AS group is a collection of ECS instances. It serves as the foundation for enabling or disabling AS policies, as well as for performing scaling operations.

The Auto Scaling service's fundamental functionality is maintaining the number of instances in an Auto Scaling group and automated scaling.

The number of instances you specify as the intended capacity determines the size of an Auto Scaling group. You can scale it up or down to match demand, either manually or automatically.


How to create an AS group:

The steps involved in creating an AS group are as follows,

First, you have to Log in to the management console.


Under Compute, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling and Click Create AS Group.



Figure 1: Console Create AS Group





Now we are going to see each block briefly.


In The First block, you will require to Enter the Region, AZ, and Multi-AZ policy.

The AS group is deployed in a certain area called a region. Internal networks do not allow resources located in various parts of the world to communicate with one another. Select a location that is close to your targeted users to reduce network latency and increase the speed at which your resources can be accessed.

When two or more AZ are configured then you have to mention the Multi Az policy, which is as follows

§  When scaling out an AS group, the system distributes ECS instances uniformly across the AZs that the AS group uses. If the target AZ fails, it switches to a different AZ based on the sequencing policy.

§  When scaling out an AS group, the system distributes ECS instances to the AZs given in the sequence in which they were specified.



Figure 2: First block



In the Second Block, you have to Set basic information about the AS group, such as Name, and Max. Instances, Min. Instances, and Expected Instances.

The expected number of ECS instances in an AS group is specified. You can adjust this value after creating an AS group, which will cause a scaling action which is to be done in case of this value changes.



Figure 3: Second block



In the Third Block, You have to specify the AS configuration if already exists then

You can use an existing AS configuration or create an AS configuration concerning the requirements. After that, you can specify the Vpc(All instances will be deployed here)  And Subnet also you need to decide if you want an Elastic load balancer



Figure 4: Third block







In the Fourth Block, you need to specify the Instance Removal Policy that has the following options:


Figure 5: Fourth block

It decides which instances are removed first when scaling in. When certain conditions are met, scaling actions are taken to get rid of instances. You can choose one of the following ways to get rid of an instance but before that, you must know that AS will always balance instances across AZ in the first place after that it will check for the removal policy.


·         The oldest instance created from the oldest AS configuration is the first one to be taken out of the AS group.

·         The newest instance is made from the oldest AS configuration. The newest instance made from the oldest configuration is the first one to be taken out of the AS group.

·         The oldest instance is the first one to be taken out of the AS group.

·         Newest instance: First, the most recent instance is taken out of the AS group.

·         Manually added ECS instances are the last to be deleted. If AS removes an instance that was added manually, it only removes it from the AS group. It doesn't get rid of any instances. If more than one manually added instance needs to be removed, AS removes the instance that was added first.


Next is to choose about EIP

·         if EIP is to be released after instance removal from the AS group select Release

·         if you want to unbind EIPs from ECSs but do not release them. So you have to Select Do not release. These EIPs will continue to be billed


Next  is the selection of the Data Disk

·         If you want the ECS disks to be deleted after they have been removed from the AS group then you need to select the Delete option

·         If you just want them to be detached  but not released then select the Do not Delete option

In the Fifth block Health Check Method, Health Check Interval, and Health Check Grace to be mentioned


Figure 6: Fifth block

There are two methods of Health check ECS health check and ELB health check


After the AS group is created, its status changes to Enabled.

Also, there is an option to Add an AS policy to an AS group.

Configure the required parameters, such as the Policy Type, Scaling Action, and Cooldown Period.

This is the whole procedure of how AS group is created.

The post is synchronized to: Author group

  • x
  • convention:

Moderator Author Created May 13, 2022 22:06:52

Excellent Guide، explained well
View more
  • x
  • convention:

MahMush Created May 30, 2022 07:01:06 (0) (0)
thanks for appreciating.  
Admin Created May 14, 2022 00:05:01

good one.
View more
  • x
  • convention:

MahMush Created May 30, 2022 07:01:50 (0) (0)
thanks friend.  
Moderator Created May 14, 2022 03:52:43

Good job for interesting guide.
View more
  • x
  • convention:

MVE Created May 14, 2022 04:28:10

Interesting content
View more
  • x
  • convention:

Created May 14, 2022 05:38:51

View more
  • x
  • convention:

MVE Created May 14, 2022 06:14:17

Very useful post thanks
View more
  • x
  • convention:

Moderator Created May 14, 2022 07:19:09

Good job, well explained with images
View more
  • x
  • convention:

MahMush Created May 30, 2022 07:03:18 (0) (0)
thanks for your support.  
MVE Author Created May 14, 2022 08:11:29

Auto Scaling is most widely used. Thanks for sharing this
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.