Creating a Bandwidth Scaling Policy
Scenarios
You can automatically adjust your purchased EIP bandwidth and shared bandwidth using a bandwidth scaling policy. This section describes how to create a bandwidth scaling policy.
When creating a bandwidth scaling policy, you need to configure basic information. The system supports three types of bandwidth scaling policies: alarm-based, scheduled, and periodic.
The basic information for creating a bandwidth scaling policy includes the policy name, resource type, policy type, and trigger condition.
Creating an Alarm-based Bandwidth Scaling Policy
- Log in to the management console.
- Under Computing, click Auto Scaling. In the navigation pane on the left, choose Bandwidth Scaling.
- Click Create Bandwidth Scaling Policy.
- Set parameters, such as the policy name, policy type, and trigger condition. For details, see Table 1.
Table 1 Alarm policy parameters Parameter
Description
Example Value
Region
Specifies the region where the AS group resides.
N/A
Policy Name
Specifies the name of the bandwidth scaling policy.
The name consists of only letters, digits, underscores (_), and hyphens (-).
N/A
EIP
Specifies the public network IP address whose bandwidth needs to be scaled.
N/A
Policy Type
Select Alarm.
Alarm
Alarm Rule
You can use an existing alarm rule or create a new one. Alternatively, click Create Alarm Rule on the right side of the Rule Name parameter and create an alarm rule on the Alarm Rules page. For details, see Creating an Alarm Rule.
To create an alarm rule, configure the following parameters:- Rule Name
Specifies the name of the new alarm rule, for example, as-alarm-7o1u.
- Trigger Condition
Select a monitoring metric and trigger condition based on the metric. Table 2 lists the supported monitoring metrics. An example value is Outbound Traffic Avg. > 100 bit/s.
- Monitoring Interval
Specifies the period for the metric, for example, 5 minutes.
- Consecutive Occurrences
Specifies the number of consecutive times, for example, one time, for triggering a scaling action during a monitoring period.
N/A
Scaling Action
Specifies the execution action in the AS policy.
The following scaling action options are available:- Add
When a scaling action is triggered, the bandwidth is increased.
- Reduce
When a scaling action is triggered, the bandwidth is decreased.
- Set to
The bandwidth is set to a fixed value.
NOTE:The step (minimum unit for bandwidth adjustment) varies depending on the bandwidth value range. The bandwidth will be automatically adjusted to the nearest value according to the actual step.
- If the bandwidth is less than or equal to 300 Mbit/s, the default step is 1 Mbit/s.
- If the bandwidth ranges from 300 Mbit/s to 1000 Mbit/s, the default step is 50 Mbit/s.
- If the bandwidth is greater than 1000 Mbit/s, the default step is 500 Mbit/s.
N/A
Cooldown Period
Specifies a period of time in the unit of second after each scaling action is complete. During the cooldown period, scaling actions triggered by alarms will be denied. Scheduled and periodic scaling actions are not restricted.
300s
Table 2 Monitoring metrics supported by the alarm policy Metric
Description
Inbound Bandwidth
Indicates the network rate of inbound traffic.
Inbound Traffic
Indicates the network traffic going into the cloud platform.
Outbound Bandwidth
Indicates the network rate of outbound traffic.
Outbound Traffic
Indicates the network traffic going out of the cloud platform.
- Rule Name
- After setting the parameters, click Create Now.
The newly created bandwidth scaling policy is displayed on the Bandwidth Scaling page and is in Enabled state by default.
Creating an Alarm Rule
When creating an alarm-based bandwidth scaling policy, you can click Create Alarm Rule to the right of Rule Name to create an alarm rule. To do so, perform the following operations:
- Click Create Alarm Rule to the right of Rule Name to switch to the Alarm Rules page of Cloud Eye.
- On the Alarm Rules page, click Create Alarm Rule in the upper right corner.
- Set parameters based on and Table 3. For more information about how to set alarm rules, see Cloud Eye User Guide.
Table 3 Key parameters for creating an alarm rule Parameter
Description
Example Value
Name
Specifies the name of the alarm rule.
alarm-bandwidth
Resource Type
Specifies the name of the service to which the alarm rule applies. Set this parameter to Elastic IP and Bandwidth.
Elastic IP and Bandwidth
Dimension
Specifies the item of the monitored service. Bandwidth scaling adjusts the bandwidth. Therefore, set this parameter to Bandwidths.
Bandwidths
Monitoring Scope
Specifies the resources to which the alarm rule applies. Set this parameter to Specific resources. Search for resources by bandwidth name or ID, which can be obtained on the page providing details about the target EIP.
Specific resources
Method
Select the method of creating an alarm. Set this parameter to Create manually.
Create manually
Alarm Policy
Specifies the alarm policy for triggering the alarm rule. Set this parameter as required. For details about the monitoring metrics, see Table 2.
N/A
- After setting the parameters, click Create.
- On the Create Bandwidth Scaling Policy page, click to the right of Rule Name, and select the created alarm rule.
Alternatively, create your desired alarm rule on the Cloud Eye page before creating a bandwidth scaling policy. Ensure that the specific resources selected during alarm rule creation are the bandwidth of the EIP selected for the bandwidth scaling policy to be created. After the alarm rule is created, you can select the rule when creating a bandwidth scaling policy.
Creating a Scheduled or Periodic Bandwidth Scaling Policy
- Log in to the management console.
- Under Computing, click Auto Scaling. In the navigation pane on the left, choose Bandwidth Scaling.
- Click Create Bandwidth Scaling Policy.
- Set parameters, such as the policy name, policy type, and trigger condition. For details, see Table 4.
- After setting the parameters, click Create Now.
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