An AS group consists of a collection of ECS instances and AS policies that have similar attributes and apply to the same application scenario. An AS group is the basis for enabling or disabling AS policies and performing scaling actions. The pre-configured AS policy automatically adds or deletes instances to or from an AS group, or maintains a fixed number of instances in an AS group.
When creating an AS group, specify an AS configuration for it. Additionally, add one or more AS policies for the AS group.
Creating an AS group involves the configuration of the maximum, minimum, and expected numbers of instances and the associated load balancer.
ECS types available in different AZs may vary. When creating an AS group, choose an AS configuration that uses an ECS type available in the AZs used by the AS group.
in the upper left corner to select a region and a project.Parameter | Description | Example Value |
|---|---|---|
Region | A region is where the AS group is deployed. Resources in different regions cannot communicate with each other over internal networks. For lower network latency and faster access to your resources, select the region nearest to your target users. | - |
AZ | An AZ is a physical location where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.
| - |
Multi-AZ Scaling Policy | This parameter can be set to Balanced or Sequenced.
| Balanced |
Name | Specifies the name of the AS group to be created. The name contains 1 to 64 characters and consists of only letters, digits, underscores (_), and hyphens (-). | - |
Max. Instances | Specifies the maximum number of ECS instances in an AS group. | 1 |
Expected Instances | Specifies the expected number of ECS instances in an AS group. After an AS group is created, you can change this value, which will trigger a scaling action. The number of expected instances cannot be smaller than the minimum number of instances or greater than the maximum number of instances. | 0 |
Min. Instances | Specifies the minimum number of ECS instances in an AS group. | 0 |
AS Configuration | Specifies the required AS configuration for the AS group. An AS configuration defines the specifications of the ECS instances to be added to an AS group. The specifications include the ECS image and system disk size. You need to create the required AS configuration before creating an AS group. | - |
VPC | Provides a network for your ECS instances. All ECS instances in the AS group are deployed in this VPC. | - |
Subnet | You can select up to five subnets. The AS group automatically binds all NICs to the created ECS instances. The first subnet is used by the primary NIC of an ECS instance by default, and other subnets are used by extension NICs of the ECS instance. | - |
Source/Destination Check | Specifies whether the system checks the correctness of the source IP addresses contained in the packets sent by ECS instances.
By default, this function is enabled. | - |
Load Balancing | This parameter is optional. A load balancer automatically distributes traffic across all ECS instances in an AS group to balance their loads. It improves the fault tolerance of your applications and expands application capabilities. NOTE:
If you select Elastic load balancer, configure the following parameters: For more information about load balancing, see Elastic Load Balance User Guide. | - |
Instance Removal Policy | Controls which instances are first to be removed during scale in. If specified conditions are met, scaling actions are triggered to remove instances by following the removal policy you choose. There are four instance removal policies for you to choose from:
NOTE: Manually added ECS instances are the last to be removed. If AS does remove a manually added instance, it only removes the ECS instance from the AS group. It does not delete the instance. If multiple manually added ECS instances must be removed, AS preferentially removes the earliest-added instance first. | Oldest instance created from oldest AS configuration |
EIP | If EIP has been selected in the AS configuration of the AS group, an EIP is automatically bound to the ECS instance added by a scaling action to the AS group. If you select Release, the EIP bound to an ECS instance is released when the instance is removed from the AS group. Otherwise, the system unbinds the EIP from the instance, but does not release it when the instance is removed from the AS group. | - |
Data Disk | If Data Disk is configured in the AS configuration used by the AS group, a data disk will be automatically created and attached to the ECS instances added during a scaling action to the AS group. If you select Release, the data disks attached to an ECS instance will be deleted when the instance is removed from the AS group. Otherwise, the system detaches the data disks from the ECS instance, but does not release them when the instance is removed from the AS group. | - |
Health Check Method | If an ECS instance fails a health check, AS replaces it with a new one. Health check methods:
| - |
Health Check Interval | Specify the interval between health checks. You can set a health check interval (10 seconds, 1 minute, 5 minutes, 15 minutes, 1 hour, or 3 hours) based on service requirements. | 5 minutes |
Health Check Grace Period | Specifies the amount of time AS must wait before checking the health of a new instance after it is put into service. The unit is second and value range is 0 to 86,400. The default value is 600. The health check grace period starts after an instance is added to an AS group and enabled. The AS group will start checking status of the instance only after the grace period ends. This parameter is only available if the ELB health check method is selected for the AS group. | 600s |
Enterprise Project | Specifies the enterprise project to which the AS group belongs. If an enterprise project is configured for an AS group, ECSs created in this AS group also belong to this enterprise project. If you do not specify an enterprise project, the default enterprise project will be used. NOTE:
| - |
Tag | If you have many resources of the same type, you can use tags to manage your resources. You can identify specified resources quickly using the tags allocated to them. Each tag contains a key and a value. You can specify the key and value for each tag.
| - |
Agency | Optional. When your ECS resources created in the AS group need to be shared with other accounts, or need to be delegated to professional personnel or team for management, the tenant administrator creates an agency in IAM and grants the ECS management permissions to the personnel or team. The delegated account can log in to the cloud system and switch to your account to manage resources. You do not need to share security credentials such as passwords with the account, ensuring the security of your account. If you have created an agency in IAM, select the agency from the drop-down list. For more information about agencies, see Account Delegation. | - |