All Products
Search
Document Center

Operation Orchestration Service:Temporarily upgrade the bandwidth of ECS instances

Last Updated:Dec 08, 2022

This topic describes how to use Operation Orchestration Service (OOS) to temporarily upgrade the bandwidth of Elastic Compute Service (ECS) instances at the scheduled time.

Background information

If you need to temporarily upgrade the bandwidth of ECS instances, you can use the Temporary Bandwidth Upgrade feature of OOS to specify the upgrade time. You can run a temporary bandwidth upgrade task every day or on the specified days each week. After you set the parameters on the Create Temporary Update Task for Bandwidth page, you can view the bandwidth fee for a single cycle in the lower-right corner of the page.

Usage notes

  1. If you upgrade the bandwidth of an ECS instance on the classic network whose original bandwidth is 0 Mbit/s, you need to restart the ECS instance in the ECS console or by calling an ECS API operation for the upgrade to take effect.

  2. You can temporarily upgrade the bandwidth of only ECS instances that use the subscription billing method.

  3. You cannot temporarily upgrade the bandwidth of ECS instances that are associated with elastic IP addresses (EIPs).

  4. You can temporarily upgrade only public bandwidth charged in the pay-by-bandwidth billing method. You cannot temporarily upgrade public bandwidth charged in the pay-as-you-go billing method.

Procedure

  1. Log on to the OOS console.

  2. In the left-side navigation pane, choose Common O&M Tasks > Temporary Bandwidth Upgrade. On the Temporary Bandwidth Upgrade page, click Create.

  3. Select Daily or Select Time as Execution Cycle. Set the Start Time, Execution Duration (Hours), Maximum Internet Outbound Bandwidth (Mbit/s), and End Time parameters. Valid values of the Maximum Internet Outbound Bandwidth (Mbit/s) parameter: 0 to 100. OOS does not verify the value of the Maximum Internet Outbound Bandwidth (Mbit/s) parameter. If the bandwidth value that you specify exceeds the bandwidth limit of an ECS instance, temporary bandwidth upgrade may fail. You can submit a ticket in the ECS console to increase the bandwidth limit, or specify a bandwidth value that does not exceed the bandwidth limit.

  4. Select Specify RAM Role and Use Permissions Granted to This Role as Permissions and select a RAM role from the drop-down list.

    In this example, OOSServiceRole is selected.

    If no RAM roles are available, create a RAM role for OOS. For more information, see Grant RAM permissions to OOS. If you know how to create a RAM role for OOS, you can directly click Create Role to go to the RAM console and create a RAM role for OSS. For more information about the required permission policy, see the following JSON script:

    {
        "Version": "1",
        "Statement": [
            {
                "Action": "oos:*",
                "Resource": "*",
                "Effect": "Allow"
            },
            {
                "Action": "ram:PassRole",
                "Resource": "*",
                "Effect": "Allow",
                "Condition": {
                    "StringEquals": {
                        "acs:Service": "oos.aliyuncs.com"
                    }
                }
            },
            {
                "Action": [
                    "ecs:DescribeInstances",
                    "ecs:ModifyInstanceNetworkSpec"
                ],
                "Resource": "*",
                "Effect": "Allow"
            }
        ]
    }
  5. Click Select Instances, select Manually Select Instances, and then select one or more ECS instances for which you want to temporarily upgrade the bandwidth.

    You can use different methods such as Manually Select Instances, Specify Instance Tags, and Specify Resource Group to select instances.

  6. Click Advanced.

    You can select Concurrency-based Control or Batch-based Control as Rate control type. If you select Concurrency-based Control, you can set the Concurrency and Error Threshold parameters. For more information about concurrency-related terms, see Loop.

    In this example, Concurrency-based Control is selected.

  7. View the bandwidth fee in the lower-right corner of the page and click Execute Now.