Smart Scheduling allows you to automatically park your resources, when the metric (set by you) falls below the threshold value.
This ensures that you get maximum savings on your cloud bills, by parking the resources in real-time. The resources will be unparked again according to the schedule.
We can use the smart scheduling feature on any resource that can be scheduled - just pick the CloudWatch metric to be measured, and set a threshold below which it will be parked.
Setting Smart Scheduling to active for a schedule means that the resources will be stopped when according to the metric.
They will again be started according to the schedule that is set for unparking.
We will try this by setting a EC2 Instances to be parked when their Average CPU Utilization falls below 2%:
Create a schedule to park EC2 Instances (find out how to do that here)
After setting the parking and unparking actions, click next to view Smart Scheduling
Namespace refers to the service being scheduled. Choose AWS/EC2.
Set Metrics (CPUUtilization), Operator, Threshold (in %)
Dimension is used to differentiate the various Instances in the service
Set Statistics to Average to use the average CPU Utilization over the measured interval
3. Click Save and Deploy