Implement Auto Scaling for an Amazon EC2 Spot Fleet
The Spot Fleet is a collection of EC2 instances that helps you to use unused EC2 instances at a high discount. In this Lab, you will create a Spot Fleet request and configure the CloudWatch alarms. You will then set up scaling policies.
Terms and conditions apply.
Lab info
Lab author
Challenge
Create a Spot Fleet Request
You will create a Spot Fleet request that contains the target capacity and launch specifications for the instances. You will also create a new key pair which will be used when creating the spot request.
Challenge
Configure CloudWatch Alarms for Spot Fleet
You will configure two CloudWatch alarms: ScaleOut and ScaleIn. These alarms will be used in later challenges for auto scaling and will provide information about CPU utilization for the instances.
Challenge
Set up a Target Tracking Scaling Policy for a Spot Fleet Request
You will set up a target tracking scaling policy for a spot fleet request. A Target tracking scaling policy will set metrics and a target value. The CloudWatch alarms will trigger the scaling policy which in turn will add or remove the resources depending on the target value and metrics.
Challenge
Set up a Step or Simple Scaling Policy for a Spot Fleet Request
You will set up a step or simple scaling policy. The CloudWatch alarm will trigger the scaling policy. When you create a step scaling policy, you must specify one of the following scaling adjustment types: Add, Remove, or Set to.
Challenge
Set up Scheduled Scaling for a Spot Fleet
You will set up a scheduled scaling policy for a spot fleet. You can define the schedule when a predefined action should take place using cron expressions.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Experience in configuring on-demand EC2 instances
- Knowledge of AWS CloudWatch