Functions
Before using the AS service, get familiar with its basic concepts. This section provides a brief introduction to common functions of the AS service.
Recording AS Operations
Cloud Trace Service (CTS) can record operations performed through the management console, API calls, and system activities. If CTS is enabled, any call made to an AS API will be recorded by CTS which will then deliver the records periodically to a specified OBS bucket for storage. With CTS, you can record AS operations for future query, auditing, and backtracking.
For more information, see Recording AS Operations.
AS Group
An AS group consists of a collection of instances and AS policies that have similar attributes and apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions. You can create an AS policy to automatically add or remove instances to or from an AS group, or maintain a fixed number of instances in an AS group. When creating an AS group, you need to configure the maximum number of instances, minimum number of instances, desired number of instances, load balancer, and other parameters.
For more information, see Creating an AS Group.
AS Configuration
An AS configuration defines the specifications of instances to be added to an AS group, such as the image and system disk size.
For more information, see Creating an AS Configuration.
AS Policy
AS policies can trigger scaling actions to adjust bandwidth or the number of instances in an AS group. An AS policy defines the conditions for triggering a scaling action and the operation to be performed in a scaling action. When a trigger condition is met, a scaling action is triggered automatically.
Currently, there are three types of AS policies:
- Alarm-based: AS automatically adjusts the number of instances in an AS group or sets the number of instances to the configured value when an alarm is generated for a configured metric, such as the CPU usage.
- Scheduled: AS automatically adds or removes instances for an AS group or maintains a fixed number of instances at a specified time.
- Periodic: AS automatically adds or removes instances for an AS group or maintains a fixed number of instances at a configured interval, such as daily, weekly, or monthly.
For more information, see AS Policy.
Dynamic Scaling
Before using AS to perform scaling actions, you must specify how to take actions to dynamically scale resources. If service demands change frequently, you can configure alarm-based policies to scale resources. When the condition defined in an AS policy is met, AS automatically changes the desired number of instances to trigger a scaling action to add or remove resources.
For more information, see Dynamic Scaling.
Scheduled Scaling
To satisfy service demands that change regularly, you can configure a policy to adjust resources on schedule or periodically.
For more information, see Scheduled Scaling.
Manual Scaling
You can manually add or remove instances to or from an AS group, or change the desired number of instances.
For more information, see Manual Scaling.
Instance Removal Policy
When instances are automatically removed from your AS group, instances that are not in the currently used AZs are prioritized. Then the instance removal policy you select will be applied.
For more information, see Configuring an Instance Removal Policy.
Lifecycle Hook
Lifecycle hooks allow you to pause a scaling process so you can perform custom actions before an instance is fully added or removed.
The following figure shows the instance lifecycle when a lifecycle hook is added to an AS group.

For more information, see Managing Lifecycle Hooks.
Instance Protection
You can configure instance protection for certain normal instances in an AS group. Protected instances will not be removed automatically from the AS group during a scale-in.
For more information, see Configuring Instance Protection.
Standby Instance
If you want to stop distributing traffic to some instances in your AS group but do not want to remove them from the AS group, you can put the instances on standby. You can put one or more instances in your AS group on standby, and then stop or restart them without worrying about if they will be removed from the AS group.
For more information, see Putting an Instance into the Standby State.
Bandwidth Scaling Policy
You can create a policy to automatically adjust your purchased EIP bandwidth and shared bandwidth. When creating a bandwidth scaling policy, you need to configure basic details such as the policy name, resource type, policy type, and trigger condition. There are three types of bandwidth scaling policies: alarm-based, scheduled, and periodic.
For details, see Creating a Bandwidth Scaling Policy.
Notifications for an AS Group
You can use the Simple Message Notification (SMN) service to receive notifications about AS group changes, such as successful or failed instance additions or removals or AS group exceptions. A maximum of five notifications can be configured for an AS group. To configure a notification for an AS group, you need to specify an event and a topic. You need first to configure a topic on the SMN console. When an event matching the topic occurs, the AS group sends you a notification.
For more information, see Configuring Notifications for an AS Group.
Monitoring Metrics
The cloud platform provides Cloud Eye to help you monitor your instances in an AS group. You can view monitoring metric details of an AS group to check performance of instances in that group.
For more information, see Monitoring Metrics and Viewing Monitoring Metrics.
Alarm Rules
Alarm rules allow you to customize monitored objects and notification policies and obtain the status of your instances in a timely manner.
For more information, see Setting Monitoring Alarm Rules.
Permissions Management
If you need to assign different permissions to employees in your enterprise to access your AS resources, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you secure access to your Huawei Cloud resources.
For more information, see Creating a User and Granting AS Permissions.
APIs
By calling APIs provided by AS, you can use all functions of AS.
For more information, see API Overview.
SDKs
With AS SDKs, you can call AS APIs to create applications easily on Huawei Cloud. Currently, there are Java, Python, and Go SDKs. You can use APIs or any of the SDKs you are familiar with.
For more information, see SDK Overview.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot