Eternal Savings Of A Spot Instance

First of all, let us understand what Spot instances actually are and how spot pricing works.

  1. Current spot price of a particular instance type in us-east-1a is $0.5/hour.
  2. And, you are willing to pay a maximum of $1 for that particular instance type in us-east-1a. So, you basically set your maximum bid price to $1 for that instance.
  3. Now, the demand(from other AWS users) for that particular instance type in us-east-1a starts increasing and others start bidding more than you.
  4. AWS now decides to increase the spot price of that instance in us-east-1a to meet the increased demand.
  5. And this process happens continuously to meet the equilibrium of demand and supply of that particular instance type in us-east-1a.
  6. Now, when the price of the spot instance becomes more than $1, AWS gives you a 2 minute warning and your instance is taken back by AWS to meet the demand. Spot-loss :( Can happen anytime and everyone hates it.

So, if you are eventually going to have a spot-loss, why use spot instances at all?

What if you don’t want the spot-loss to happen and at the same time avail the benefit of low spot prices.

(0.05 * 5) + (0.95 * 0.3) = 0.535

Now, let’s come to our main objective of this article.

What’s new?

spot price history for m2.xlarge instance type in us-east-1 region
  1. Spot prices before 29th Nov 2017 i.e., before smooth price change announcement.
  2. Spot prices from 29th Nov 2017 i.e., after smooth price change announcement.

As part of today’s launch we are changing the way that Spot prices change, moving to a model where prices adjust more gradually, based on longer-term trends in supply and demand.

How to use it to optimize the cost?

spot price history for m2.xlarge instance type in us-east-1 region

--

--

--

Engineer at Facebook

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Laravel Development Services And eCommerce Daily Deals

My Journey with JSON

Data Structures: Linked Lists

Understanding Exceptional Flow — Type Inference

What Is The Easiest Way To Track Precious Metal Rates?

Udacity Android Developer Nanodegree: Behind The Scenes!

My journey in Le Wagon Singapore’s Part-time Coding Bootcamp (Part 1)

Introduction to Microservices | සිංහලෙන්

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vikas Sangle

Vikas Sangle

Engineer at Facebook

More from Medium

A comprehensive guide on AWS and services it provides

aws_cloudwatch

AWS Single Sign-On (SSO) Using STS

AWS Systems Manager Automation — Part 1