As organizations increasingly turn to AWS Spot instances to save on cloud costs, it’s common knowledge that AWS says:

  • 95% of Spot instances won’t be interrupted.
  • You have 2-minute advance warning of termination.

But is that as straightforward as it sounds? nOps processes $1 billion in cloud spend, meaning that we have extensive historical data about Spot usage and terminations — and we’ve discovered some surprising Spot insights.

What is AWS Spot?

AWS Spot Instances are spare AWS capacity that users can purchase at a heavy discount. It allows AWS to monetize idle time in their data center by offering it on the Spot market.

Why can Spot be challenging to use? The TL;DR is that AWS gives you a discount on the instance, but not a guarantee that you’ll be able to use it to the end of your compute need.

When a user willing to pay the full On-Demand price emerges, AWS can terminate these instances with a two-minute warning (known as a Spot Instance Interruption). These unexpected interruptions can cause workloads to fail, potentially posing a major problem for production or mission-critical applications. That’s why many companies avoid using it despite the significant potential cost savings.

In this blog post, we’ll share 6 little-known facts about Spot reliability and savings.

#1: Spot is a lot more reliable than commonly believed

Most of the organizations we’ve talked to believe Spot terminates at an alarmingly higher rate than it actually does (50% of the time!?) — but the reality is that less than 5% of Spot instances are terminated in any given month.

Here is a graph that shows real historical data charting the likelihood of Spot instance termination.

spot-termination

#2: Spot instances generally live longer than users ask them to

Let’s take a look at the typical lifetime of (1) a Spot instance that lived its life through and was terminated gracefully by a user, compared with (2) a Spot instance that was terminated by AWS.

Who terminatedMean Lifetime
Gracefully Terminated0:47:44
Termination by AWS3:48:31
lifetime of a Spot instance

Most users who gracefully terminated their Spot usage ran on the instance for over 45 minutes. And on average, it takes almost 4 hours before AWS will terminate your Spot instance.

A few high-level inferences we can make from this is that if you want to have more confidence that your Spot instance won’t be terminated by AWS, you’ll need to run it for less than an hour. And additionally, the longer you run on a Spot instance, the higher the chance that you will be terminated.

#3: Some Spot instances show surprising longevity

Our data shows that the average Spot instance lives for around 4 hours. However, there also exist some digital Methuselahs among them. Although some Spot instances that where shutdown by the user lived up to 257 days, there were Spot instances there were terminated at 351 days 18 hours and 11 minutes of lifetime.

Some extraordinarily stable Spot instances have lived for almost a year!

#4: Spot instances lifetimes vary hugely from region to region

Let’s look at some instances across the United StatesS

RegionWho terminatedMean Lifetime
us-west-2User Shutdown0h 34m 44s
us-west-2Spot Instance Termination Event3h 53m 20s
us-west-1User Shutdown0h 50m 31s
us-west-1Spot Instance Termination Event10h 46m 30s
us-east-2User Shutdown1h 11m 56s
us-east-2Spot Instance Termination Event21h 53m 19s
us-east-1User Shutdown1h 02m 26s
us-east-1Spot Instance Termination Event3h 07m 51s

A couple of observations:

  1. For the us-west-2 region, we have figures that are very similar to those in the previous table (all Spot instances). The fact that they resemble the typical instance means that they are likely the most prevalent in terms of volume.
  2. For the us-west-1 region, we see a significant difference from the average. Severed terminations are at 10 hours and 46 minutes, three times higher than the average or us-west-2. If you’re looking for reliability, the hard data indicates that you should choose us-west-2 over us-west-1.

#5: It’s typically misleading to say “Spot is 95% reliable”

AWS says that Spot instances have 95% reliability — meaning that in theory, only 5% of uses of Spot will face termination issues.

We’ve already shown that the actual average is in fact lower than 5%. Now, let’s compare by region.

RegionObserved InstancesTerminated InstancesTermination rate
us-west-23,879,849158,1594.08%
us-west-136,6201750.48%
us-east-2225,3212,4651.09%
us-east-12,442,402243,1089.95%

The above table shows how summarized numbers can be deceiving, as we have wildly different Spot instance behaviors, lifetimes and termination rates depending on region. For comparison, us-east-1 is only 90% reliable, whereas us-west-2 is 99% reliable.

#6: Spot reliability varies greatly by instance type

As you break down Spot instance averages from all instances to region types, you see much less dispersed variation in this population. The same holds true when you drill down by instance type, availability zone — not to mention other parameters such as day of the week, month, etc.

Instance TypeObserved InstancesTerminated InstancesPercentage
i3.4xlarge82,5229,45111.45%
i3.xlarge164,97114,1868.6%
m5.2xlarge56,61116,71729.53%<
m5.4xlarge69,3387,35310.6%
m5.large75,9319,76812.86%
m5.xlarge292,22141,07414.06%
m5n.xlarge318,5059,4822.98%
m6a.xlarge48,5608,28917.07%
r5.2xlarge162,03411,7597.26%
r5.4xlarge115,54112,48810.81%
r5.8xlarge177,6959,1685.16%
r5.xlarge1,098,04055,1235.02%
r6i.2xlarge22,7637,14631.39%
r6i.xlarge103,29411,01310.66%

As you can see, if you’re running a r6i.2xlarge, it’s nowhere near 95% reliable – it’s only 79% reliable on average.

As you can see, improving the detail of your Spot lifetime termination data, significantly improves the precision and reliability of your termination prediction — even without a time series, advanced analytics, Machine Learning, or other advanced techniques that can be used to improve results further.

Why everyone wants to (but usually can’t) predict Spot terminations

In an ideal world, you would be able to benefit from Spot discounts with certainty that a workload will not fail, stop or be interrupted. Achieving this depends on accurately predicting when Spot terminations will occur. Knowing about terminations in advance allows users to gracefully shift their workloads to other instances, avoiding disruption.

The challenge in perfecting this prediction lies in the scarcity of detailed historical data on Spot usage. Amazon does release some data about Spot availability trends, offering insights into the expected market conditions in the short term, such as the next hour or few hours. However, these data points are far too limited to conduct a classical data science analysis. Many academic and scientific papers have been written about the difficulty of predicting Spot terminations, yet come with a huge asterisk acknowledging a lack of available historical data with sufficient variation and time.

Because nOps processes $1 billion in cloud spend, we are one of the few sources with access to sufficient relevant historical data to answer this question.

nOps uses proprietary ML to analyze massive amounts of Spot market and historical data for instance families, given region, instance type, availability zone, and many other factors. As a result, we can accurately predict Spot terminations far in advance of the 2-minute warning provided by AWS.

Why nOps?

nOps helps companies automatically optimize any compute-based workload. Our mission is to make it faster and easier to save on cloud costs, so you can focus on building and innovating.

Every 10 minutes, nOps Compute Copilot analyzes the Spot market to predict termination 60 minutes in advance. Copilot automatically and continually moves your workloads onto diverse and less risky instance types, minimizing your risk of interruption.

With advance notice of Spot termination, you can automatically provision and scale your workloads in the most cost-efficient and reliable way possible. You benefit from Spot savings, with enterprise-level SLAs for reliability. (We, and many other companies, use this solution to run mission-critical and product workloads on Spot).

And it’s hands free — just plug in your EKS, ASG, or other compute-based workload to start saving effortlessly.

nOps was recently ranked #1 in G2’s cloud cost management category. Join our customers using nOps to slash your cloud costs by booking a demo today!