CloudOps Orchestration Service Use Case: Schedule Temporary Bandwidth Upgrades for EIPs
Background Information
With the ongoing business development and the diversification of Internet scenarios, it has become increasingly common for enterprises and individual users to encounter significant spikes in network traffic within a specific period of time. Such spikes, driven by events such as large-scale promotional campaigns, popular live broadcasts, major news announcements, or seasonal data backup activities, can quickly saturate existing bandwidth. This adversely affects user experience and potentially causes service interruptions. Traditional network bandwidth configurations often fail to cope with these sudden spikes, and maintaining high bandwidth levels over the long term can be prohibitively expensive. Thus, users who seek to balance cost with network performance face a significant challenge.
To resolve the preceding issue, CloudOps Orchestration Service (OOS) introduces the feature of scheduled temporary bandwidth upgrades. OOS already supports temporary bandwidth upgrades. For more information about the temporary bandwidth upgrade feature, see Temporarily upgrade the bandwidth of ECS instances. OOS now offers a scheduled bandwidth upgrade feature specifically for scenarios in which Elastic IP addresses (EIPs) are used. This feature provides a flexible solution that allows users to temporarily increase bandwidth based on business requirements during a specific period of time in anticipation of business peaks. This enables proactive planning for expected traffic surges and automatically reverts to lower bandwidth after the peak period, thus avoiding unnecessary additional costs.
Key Features
- Scheduled triggering: Users can preset specific dates and times for automatic bandwidth upgrades to be executed based on the schedule, eliminating the need for manual intervention.
- Automatic reversion: Upon completion of the upgrade duration, the bandwidth automatically reverts to the original value to avoid unnecessary costs.
- Cost optimization: Users can upgrade bandwidth only when necessary to significantly reduce operational costs and achieve optimal resource utilization.
- Streamlined operation: The OOS console provides a user-friendly interface that enables quick and easy setup of scheduled upgrades with just a few steps.
Scenarios
Big Sales Promotions on E-commerce Platforms
During e-commerce industry promotions at year-end and on specific holidays, website traffic dramatically surges. By using the scheduled bandwidth upgrade feature, e-commerce platforms can preset bandwidth upgrades ahead of time to ensure smooth customer access, enhancing the shopping experience and increasing conversion rates.
Live Classes on Online Education Platforms
Online education platforms experience a rapid increase in user traffic during large-scale free public classes or live sessions with renowned instructors. By using the scheduled bandwidth upgrade feature, online education platforms can ensure that adequate network bandwidth is available for the duration of live streams, thereby facilitating the smooth delivery of courses.
Game Releases and Updates
When game companies launch new titles or roll out major updates, a concentrated influx of players downloading the update packages can cause a significant bandwidth spike. By using the scheduled bandwidth upgrade feature, gaming companies can offer stable download services during these critical periods, thereby enhancing the player experience.
Periodic Data Backup
For enterprises that need to undertake large-scale data migration or backups, using the scheduled bandwidth upgrade feature can ensure consistent network speed during the data transfer period. This helps shorten the backup time window and minimize disruption to business operations.
Note
- Only pay-as-you-go EIPs are eligible for temporary bandwidth upgrades.
- You can temporarily upgrade only the public bandwidth that is charged by using the pay-by-bandwidth billing method. You cannot temporarily upgrade the public bandwidth that is charged by using the pay-by-data-transfer billing method.
Procedure
1. Log on to the OOS console.
2. In the left-side navigation pane, choose Automated Task > Public Template. On the Public Template page, enter ACS-VPC-ScheduleToUpgradeEipBandwidth in the search box. Find the ACS-VPC-ScheduleToUpgradeEipBandwidth template and click Create Execution.

3. On the Create Task page, click Next Step: Parameter Settings. In the Parameter Settings step, configure the TimerTrigger parameter in the Timer Trigger Configure section.
You can set the TimerTrigger parameter to Execute Now, Executed Once at the Specified Time, or Executed Periodically. If you select Execute Now, the scheduled bandwidth upgrade task is executed immediately after it is created. If you select Executed Once at the Specified Time, the scheduled bandwidth upgrade task is executed only once at the specified point in time. If you select Executed Periodically, the scheduled bandwidth upgrade task is periodically executed based on the scheduled time. For example, you can specify that the scheduled bandwidth upgrade task is executed on an hourly basis.

4. In the Select ECS Instances section, specify the region in which your EIP resides and the ID of the EIP, enter the bandwidth and bandwidth upgrade duration, and then click Next Step: OK. The minimum bandwidth upgrade duration is 1 hour. The scheduled bandwidth upgrade task is created. When the specified time arrives, the bandwidth of the EIP is automatically upgraded. Upon completion of the upgrade duration, the bandwidth automatically reverts to the original value.

Appendix
Execution Flowchart
The following figure shows the entire execution process.

The following figure shows the process of upgrading the bandwidth of an EIP.

Template
The following section describes the content of the ACS-VPC-ScheduleToUpgradeEipBandwidth template that is used in this example:
FormatVersion: OOS-2019-06-01
Description:
en: Schedule to upgrade EIP bandwidth
name-en: ACS-VPC-ScheduleToUpgradeEipBandwidth
categories:
- time_trigger
Parameters:
TimerTrigger:
Type: Json
Label:
en: TimerTrigger
AssociationProperty: ALIYUN::OOS::Component::TimerTrigger
AssociationPropertyMetadata:
MinuteInterval: 30
RegionId:
Type: String
Label:
en: The id of region
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
AllocationId:
Type: List
Label:
en: TargetEIPInstance
Bandwidth:
Label:
en: Bandwidth
Description:
en: The peak bandwidth of EIP needs to be modified. The value is:1~500. It is billed based on fixed bandwidth, in Mbps.
Type: Number
MinValue: 1
MaxValue: 500
DurationHour:
Label:
en: DurationHour
Description:
en: Unit:Hour. The bandwidth upgrade should last at least 1 hours
Type: Number
MinValue: 1
MaxValue: 24
Default: 1
RateControl:
Label:
en: RateControl
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: The RAM role to be assumed by OOS
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: GetEipInstance
Description:
en: Get the EIP instance
Action: ACS::ExecuteAPI
Properties:
Service: VPC
API: DescribeEipAddresses
Parameters:
RegionId: '{{ RegionId }}'
AllocationId:
Fn::Join:
- ','
- '{{ AllocationId }}'
Outputs:
AllocationIds:
Type: List
ValueSelector: .EipAddresses.EipAddress[].AllocationId
- Name: UpgradeEipAddressBandwidth
Action: ACS::VPC::UpgradeEipBandwidth
Description:
en: Upgrade EIP instance bandwidth
Properties:
RegionId: '{{ RegionId }}'
AllocationId: '{{ ACS::TaskLoopItem }}'
Bandwidth: '{{ Bandwidth }}'
DurationHour: '{{ DurationHour }}'
Loop:
RateControl: '{{ RateControl }}'
Items: '{{ GetEipInstance.AllocationIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- TimerTrigger
Label:
default:
en: Timer Trigger Configure
- Parameters:
- RegionId
- AllocationId
- Bandwidth
- DurationHour
Label:
default:
en: Select ECS Instances
- Parameters:
- RateControl
- OOSAssumeRole
Label:
default:
en: Control Options
The following section describes the content of Action: ACS::VPC::UpgradeEipBandwidth:
FormatVersion: OOS-2019-06-01
Description:
en: Upgrading the temporary bandwidth of an EIP instance
name-en: ACS::VPC::UpgradeEipBandwidth
Parameters:
RegionId:
Type: String
Label:
en: The id of region
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
AllocationId:
Type: String
Label:
en: TargetEIPInstance
Bandwidth:
Label:
en: Bandwidth
Description:
Type: Number
MinValue: 1
MaxValue: 200
Default: 10
DurationHour:
Label:
en: DurationHour
Description:
en: Unit:Hour. The bandwidth upgrade should last at least 1 hours
Type: Number
MinValue: 1
Default: 1
Tasks:
- Name: GetEipInstance
Description:
en: Views the EIP instances
Action: ACS::ExecuteAPI
Properties:
Service: VPC
API: DescribeEipAddresses
Parameters:
RegionId: '{{ RegionId }}'
AllocationId: '{{ AllocationId }}'
Outputs:
Bandwidth:
Type: String
ValueSelector: .EipAddresses.EipAddress[].Bandwidth
- Name: UpgradeEipAddressBandwidth
Action: ACS::ExecuteAPI
Description:
en: Upgrade EIP instance bandwidth
Properties:
Service: VPC
API: ModifyEipAddressAttribute
Parameters:
RegionId: '{{ RegionId }}'
AllocationId: '{{ AllocationId }}'
Bandwidth: '{{ Bandwidth }}'
- Name: DurationHour
Action: ACS::Sleep
Description:
en: Bandwidth upgrade duration
Properties:
Duration: '{{ DurationHour }}H'
- Name: RecoverEipAddressBandwidth
Action: ACS::ExecuteAPI
Description:
en: Recover EIP instance bandwidth
Properties:
Service: VPC
API: ModifyEipAddressAttribute
Parameters:
RegionId: '{{ RegionId }}'
AllocationId: '{{ AllocationId }}'
Bandwidth: '{{ GetEipInstance.Bandwidth }}'
Read previous post:
Comments
Related Products
-
CloudOps Orchestration Service
CloudOps Orchestration Service is an automated operations and maintenance (O&M) service provided by Alibaba Cloud.
Learn More -
Backup and Archive Solution
Alibaba Cloud provides products and services to help you properly plan and execute data backup, massive data archiving, and storage-level disaster recovery.
Learn More -
Drive and Photo Service
A low-code, high-availability, and secure platform for enterprise file management and application
Learn More -
Alibaba Cloud Academy
Alibaba Cloud provides beginners and programmers with online course about cloud computing and big data certification including machine learning, Devops, big data analysis and networking.
Learn More