Spot Instance - Fully exploited :)
This post belongs to my blog page related to cloud computing. As a cloud computing practitioner and student, I plan to share all the interesting ways in which cloud infrastructure can be configured sometimes saving $$s and sometimes just appreciating the idea.
There are five different pricing models for EC2 compute
- On-Demand
- Savings plan
- Reserved Instances
- Spot Instance and
- Dedicate host
Spot Instance is an odd one, Spot Instance prices s are set by Amazon EC2 based on the long-term trends in supply and demand. Amazon EC2 reserves the right to terminate the instance if the Spot price increases above your bid price.
Now, this is very annoying, agree that the compute price for a spot instance is 90% lower than an on-demand instance but there is a possibility that nothing gets done. Amazon will not charge if the spot instance is terminated by Amazon EC2 in the first hour however Amazon EC2 will charge for the nearest second in subsequent hours. If the user terminates the instance he will be billed for the entire hour/s.
Now here is the trick:
Amazon lets you provision capacity across Spot, On-Demand, RIs, and Savings plans. Consider the below configuration:
Another option is to create CloudFormation templates that include a bid for Spot capacity as part of an Auto Scaling group.
A perfect example of using automation to generate maximum business value. I hope you liked the idea, please share your thoughts and if you know of other ideas please share in the comments!
Take care!
Reference:
Comments
Post a Comment