AWS
Other / August, 26 2020

Spot Instances – The hidden gem of AWS Ecosystem

Amazon has introduced a low-cost EC2 pricing option called ‘Spot Instances’ way back in 2009, where you could take advantage of unused EC2 capacity in the AWS cloud, at up to 90% discount compared to On-Demand prices.

In 2015 AWS introduced Spot Block & Spot Fleet, where you could launch Spot Blocks that will run continuously for a finite duration (1 to 6 hours), which is 30% to 45% less than On-Demand and you could launch Spot Fleet to meet the target capacity. It is a collection of Spot Instances, and optionally On-Demand Instances.

Despite the alluring discounts up to 90%, today’s AWS users/customers still fear using Spot Instances due to its interruption behavior.

The customers need to be aware of some of the newly introduced and enhanced features about spot Instances, such as

  • Integration of Spot Instances with Autoscaling groups and several other AWS  services such as AWS Batch, ECS, EMR, SageMaker, CloudFormation, Thinkbox, etc.
  • Combine purchase options to optimize costs.
  • Diversification & Spot flexibility.
  • Select the best instance types with Spot Instance Advisor.
  • Addressing Spot interruptions with STOP & RESUME workloads on EC2 Spot Instances.
  • Workaround automation to address interruption notices of Spot Instances.

Two essential things customers should think primarily are

  • New Spot Pricing model
  • Selecting the best instance type for Spot pool

It is always prudent to review the Spot price history (90 day period) before deciding the ‘Maximum price’ when you request for Spot Instances.

You don’t have to bid for Spot Instances in the new pricing model, and you pay the Spot price that’s in effect for the current hour for the instances that you launch. It’s that simple. You can request Spot capacity just like you would request On-Demand capacity, without having to spend time analyzing market prices or setting a maximum bid price.

In the new model, the Spot prices are more predictable and is determined by supply and demand for Amazon EC2 spare capacity, not bid prices. You can find the price that’s in effect for the current hour in the EC2 console.

Login to  https://console.aws.amazon.com/ec2/ Spot instances Pricing history

ec2 console

In the new model, you still have the option to further control costs by submitting a “Maximum price” that you are willing to pay in the console when you request for Spot Instances:

As “Selecting the best instance type “ is the core for all the above, we will explore this further:

As the overall availability improves by deploying your applications across different instance types, it is essential to focus on choosing the right Spot instance pool, which is the set of unused EC2 instances with the same instance type, operating system, Availability Zone, and network platform.

So far, we have been working with different types of instances for a variety of workloads. When it comes to the Spot instance pool, it makes sense to know about their ‘Frequency of Interruption’.

AWS has introduced ‘Spot Instance advisor,’ which provides the list of instance types and the Frequency of interruption’ in % along with the % of ‘Savings over On-Demand’.

As a customer, you should be able to determine your workload tolerance for interruption and the cost savings aspect.

Usually, we see the Frequency of interruption (the rate at which Spot has reclaimed capacity) in the below range.

  • <5%
  • 5 to 10%
  • 10 to 15%
  • 15 to 20%
  • >20%

 Based on the ‘Frequency of Interruption’, you can categorize them as 

  • Most Interrupted Instance Types
  • Least Interrupted Instance Types

For better understanding, you can view the sample data (at the time of writing) as below which may vary with each region and for underlying OS (Linux/Windows)

spot instance advisor

It is recommend starting with instance types having lower frequency of being interrupted and adding more instance types as you improve your application’s flexibility and fault tolerance.

Get in Touch

Newsletter

Stay up-to-date with our latest news, updates, and promotions by subscribing to our newsletter.

Microsoft Solutions Partner - Infrastructure (Azure)
Microsoft Solutions Partner - Modern Work
Microsoft Solutions Partner - Data & AI (Azure)
Microsoft Solutions Partner - Business Applications
Microsoft Partner Azure Expert MSP

Copyright © 2008-2023 Saxon. All rights reserved | Privacy Policy

Address: 1320 Greenway Drive Suite # 660, Irving, TX 75038

Archana Aila

Archana Aila

Position Here

With 2 years of hands-on experience in Power Platform, I’ve excelled in developing and implementing solutions for businesses, harnessing the power of Power Apps, Power Automate, Power BI, and Power Virtual Agents to streamline processes and enhance productivity. My proficiency extends to crafting custom applications, automating workflows, generating data insights, and creating chatbots to aid operational efficiency and data-driven decision-making.

With an intermediate knowledge in Azure cognitive services, incorporating them into Power Platform use cases to innovate and solve complex challenges. My expertise in client engagement and requirements gathering, coupled with effective team coordination, ensures on-time, high-quality project deliveries. These efforts have yielded significant accomplishments, solidifying my role as a valuable asset in this field.

Palak Intodia

Palak Intodia

Position Here

I am a tech graduate with a strong passion for technology and innovation. With three years of experience in the IT industry, I’ve been on a continuous journey of professional growth and skill development. My expertise lies in Power Apps and Automate, where I’ve had the privilege of contributing to multiple successful projects.

I’m dedicated to delivering results that not only meet expectations but also drive the success of the projects I’m involved in. I’m committed to my ongoing professional development and the pursuit of excellence.

Roshan

Roshan Jaiswal

Position Here

With nearly 2 years of dedicated experience in Power Platform technology, my expertise lies in crafting customized business solutions using Power Apps and Power Automate. I excel in identifying intricate business requirements and translating them into innovative, user-friendly applications. My daily tasks involve meticulously deploying applications across diverse environments and harnessing the full potential of the Microsoft ecosystem within business applications.

I have proven my adaptability by consistently meeting the demands of creating responsive and scalable applications. Also seamlessly integrating complex workflows and data sources, ultimately enhancing operational efficiency and driving sustainable business growth.

Sugandha

Sugandha Chawla

Position Here

Sugandha is a seasoned technocrat and a full stack developer, manager, and lead. Having 8 years of industry experience, she has been able to build excellent working relationships with all her customers, successfully establishing repeat business, from almost all of them. She has worked with renowned giants like Infosys, Ernst & Young, Mindtree and Tech Mahindra.

She has very diverse and enriching work experience, having worked extensively on Microsoft Power Platform, .NET, Angular, Azure, Office 365, SQL. Her distinctiveness lies in the profound domain knowledge, managerial skills, and process mastery, that she additionally holds, as a result of possessing a customer facing role, working with different sectors, and managing and driving numerous critical executions, single-handedly, end to end.

Vibhuti Dandhich

Vibhuti Dadhich

Position Here

Vibhuti, a Power Platform technology evangelist, has passionately embraced the transformative potential of low-code development. With a background that includes experience at EY and Wipro, she’s been a trusted advisor for clients seeking innovative solutions. Her expertise in unraveling complex business challenges and crafting tailored solutions has propelled organizations to new heights.

Vibhuti’s commitment to staying at the forefront of technological advancements and her forward-thinking approach have solidified her as an industry thought leader. Her mission is to empower businesses to thrive in the digital age, revolutionizing operations through the Power Platform.

Ruturaj Kulkarni

Ruturaj Kulkarni

Position Here

With 8 years of dedicated expertise in the IT realm, I am a seasoned professional specializing in .NET technologies and Microsoft Azure Cloud. My journey encompasses a profound understanding of software development using the .NET framework and a robust command over Azure’s cloud ecosystem. Throughout my career, I’ve demonstrated a knack for crafting scalable and efficient solutions, leveraging the power of cloud computing.

My passion lies in staying at the forefront of technological advancements, ensuring that my skills align seamlessly with the dynamic landscape of IT. Ready to tackle challenges and drive innovation, I bring a wealth of experience to any project or team.