If your business has significant daily traffic fluctuations in industries such as gaming, e-commerce, online education, media and entertainment, and data analysis, you can use the scheduled startup and shutdown feature of CloudOps Orchestration Service (OOS) to minimize costs associated with ECS instances during off-peak hours every day. The automated O&M process not only enhances efficiency but also significantly reduces operational costs.
Prerequisites
The economical mode is enabled for your ECS instances. For more information, see Economical mode.
Solution
You can create a scheduled startup and shutdown task on the Common O&M Tasks page in the OOS console to implement scheduled startup and shutdown of ECS instances. If your instances are deployed in multiple regions and you want to configure a scheduled startup and shutdown task for these instances, you can click Create in the Scheduled Startup and Shutdown section on the Quick Setup page to complete unified configurations for multiple regions at a time.
Divide instances into groups
Group and tag the ECS instances that need to be started and stopped on a regular basis. For example, you can group ECS instances with the machine:Stop and machine:Daily tags. This way, you can manage ECS instances with the same tag at a time.
Configure scheduled startup and shutdown
Use OOS to schedule ECS instances with a specific tag to start and stop on a regular basis. Make sure that the No Fees for Stopped Instances feature is enabled for these ECS instances. The following figure shows the process.
Procedure
Log on to the CloudOps Orchestration Service console.
In the left-side navigation pane, choose
. In the left-side pane of the Common O&M Tasks page, click Scheduled Startup/Shutdown.Click Create.
In the Select Task Type section of the Create Task Scheduled Startup/Shutdown page, configure the required parameters such as Task Name, Execution Cycle, Task Type, Time Zone, Startup Time, and Shutdown Time.
In the Select Instances section, select Specify Instance Tags. Select a region from the drop-down list and configure the Tag key and Tag value parameters to add tags.
Click Create. Then, OOS can automatically start and stop the specified ECS instances on a regular basis.
On the Scheduled Startup/Shutdown tab, find the scheduled startup and shutdown task that you created and click Details in the Actions column. In the Execution Progress section of the execution details page, click the Pending Executions tab to view the future scheduling information and click the Historical Executions tab to view the execution history. Go to the ECS console and search for ECS instances with the specified tag. You can find that these ECS instances are in the Stopped state except during the specified running period. They automatically start and stop based on the specified scheduled time.