Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
23 KiB
Instance Lifecycle
An ECS instance in an AS group goes through different statuses from its creation to its removal.
When trigger condition 2 or 4 is met, the system autonomously puts instances into the next status.
Status |
Sub-status |
Status Description |
Trigger Condition |
---|---|---|---|
Initial |
None |
The instance has not been added to the AS group. |
N/A |
Adding to AS group |
Add the instance. |
When trigger condition 1 is met, AS adds the instance to expand the AS group capacity. |
The instance status changes to Adding to AS group when any of the following conditions is met:
|
Adding to AS group |
(Optional) Associate the instance with a load balancing listener. |
When trigger condition 1 is met, AS associates the created instance with the load balancing listener. |
The instance status changes to Adding to AS group when any of the following conditions is met:
|
Enabled |
None |
The instance is added to the AS group and starts to process service traffic. |
N/A |
Removing from AS group |
(Optional) Disassociate the instance from the load balancing listener. |
When trigger condition 3 is met, the AS group starts to reduce resources and disassociate the instance from the load balancing listener. |
The instance status changes from Enabled to Removing from AS group when any of the following conditions is met:
|
Removing from AS group |
Remove the instance. |
After the instance is unbound from the load balancing listener, it is removed from the AS group. |
The instance status changes from Enabled to Removing from AS group when any of the following conditions is met:
|
Removed |
None |
The instance lifecycle in the AS group ends. |
None |
When an ECS instance is added to an AS group manually or through a scaling action, it goes through the Adding to AS group, Enabled, and Removing from AS group statuses. Then it is finally removed from the AS group.
Under trigger condition 2, 4, 6, or 8, the system automatically changes the instance status.
Status |
Sub-status |
Status Description |
Trigger Description |
---|---|---|---|
Initial |
None |
The instance has not been added to the AS group. |
N/A |
Adding to AS group |
Add the instance. |
When trigger condition 1 is met, AS adds the instance to expand the AS group capacity. |
The instance status will be changed to Adding to AS group when any of the following conditions is met:
|
Wait (Adding to AS group) |
None |
The lifecycle hook suspends the instance that is being added to the AS group and puts the instance into a wait status. |
The instance status is changed from Wait (Adding to AS group) to Adding to AS group when either of the following occurs:
|
Adding to AS group |
(Optional) Associate the instance with a load balancing listener. |
When trigger condition 3 is met, AS associates the instance with the load balancing listener. |
The instance status is changed from Wait (Adding to AS group) to Adding to AS group when either of the following occurs:
|
Enabled |
None |
The instance is added to the AS group and starts to process service traffic. |
The instance status changes from Enabled to Removing from AS group when any of the following occurs:
|
Removing from AS group |
(Optional) Disassociate the instance from the load balancing listener. |
When trigger condition 5 is met, the AS group starts to reduce resources and disassociate the instance from the load balancing listener. |
The instance status changes from Enabled to Removing from AS group when any of the following occurs:
|
Wait (Removing from AS group) |
None |
The lifecycle hook suspends the instance that is being removed from the AS group and puts the instance into a wait status. |
The instance status is changed from Wait (Removing from AS group) to Removing from AS group when either of the following occurs:
|
Removing from AS group |
Remove the instance. |
When trigger condition 7 is met, AS removes the instance from the AS group. |
The instance status changes from Wait (Removing from AS group) to Removing from AS group when either of the following occurs:
|
Removed |
None |
The instance lifecycle in the AS group ends. |
None |
Instances are added to an AS group manually or through a scaling action. Then, they go through the Adding to AS group, Wait (Adding to AS group), Adding to AS group, Enabled, Removing from AS group, Wait (Removing from the AS group), and Removing from AS group and are finally removed from the AS group.