• Auto Scaling

as
  1. Help Center
  2. Auto Scaling
  3. User Guide
  4. AS Management
  5. Bandwidth Scaling
  6. Creating a Bandwidth Scaling Policy

Creating a Bandwidth Scaling Policy

This section describes how to create a bandwidth scaling policy to automatically adjust the bandwidth. The system supports three types of policies, including alarm, scheduled, and periodic. The basic information for creating a bandwidth scaling policy includes the policy name, policy type, and trigger condition.

NOTE:
  • When the trigger condition of an enabled bandwidth scaling policy is met, the AS service automatically adds, reduces, or sets the bandwidth of an EIP to a specified value based on the action you have configured.
  • After you create a bandwidth scaling policy, the policy is automatically enabled.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner to select a region and a project.
  3. Under Computing, click Auto Scaling. In the navigation pane on the left, choose Bandwidth Scaling.
  4. Click Create Bandwidth Scaling Policy.
  5. Configure the parameters listed in the following table, such as Policy Name, Policy Type, and Trigger Condition.
    Table 1 Parameters for configuring an alarm policy

    Parameter

    Description

    Example Value

    Region

    Specifies the region where the AS group resides.

    None

    Policy Name

    Specifies the name of the bandwidth scaling policy.

    The name consists of only letters, digits, underscores (_), and hyphens (-).

    None

    EIP

    Specifies the public network IP address whose bandwidth needs to be scaled.

    None

    Policy Type

    Select Alarm.

    Alarm

    Alarm

    You can use an existing alarm rule or create a new one.

    To create an alarm rule, configure the following parameters:
    • Alarm Name

      Specifies the name of the new alarm rule, for example, as-alarm-7o1u.

    • Trigger Condition

      Select the monitoring metric and trigger condition based on the metric. Table 2 lists the supported monitoring metrics. An example value is Outbound Bandwidth 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.

    None

    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 500 Mbit/s, the default step is 50 Mbit/s.

    None

    Limit

    Specifies the maximum and minimum bandwidth allowed (Mbit/s).

    • When Scaling Action is set to Add, this parameter specifies the maximum bandwidth allowed.
    • When Scaling Action is set to Reduce, this parameter specifies the minimum bandwidth allowed.
      NOTE:

      This parameter is unavailable if Scaling Action is Set to.

    50 Mbit/s

    Cooldown Period

    Specifies a period of time 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.

    Table 3 Parameters for configuring a scheduled or periodic policy

    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 (-).

    as-policy-p6g5

    EIP

    Specifies the public network IP address whose bandwidth needs to be scaled.

    None

    Policy Type

    Specifies the policy type. You can select a scheduled or periodic policy.

    If you select Periodic, you are required to configure two more parameters:

    • Time Range

      Specifies a time range during which the AS policy can be triggered.

    • Interval
      • One day
      • One week
      • One month

    None

    Triggered At

    Specifies a time at which the AS policy is triggered.

    None

    Scaling Action

    Specifies the action in a scaling action.

    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 500 Mbit/s, the default step is 50 Mbit/s.

    None

    Limit

    Specifies the maximum and minimum bandwidth allowed.

    • When Scaling Action is set to Add, this parameter specifies the maximum bandwidth allowed.
    • When Scaling Action is set to Reduce, this parameter specifies the minimum bandwidth allowed.
      NOTE:

      This parameter is unavailable if Scaling Action is Set to.

    50 Mbit/s

    Cooldown Period

    Specifies a period of time 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

  6. Click Create Now.

    The newly created bandwidth scaling policy is displayed on the Bandwidth Scaling page and is in Enabled state by default.