# Is spot instance interruption prediction just hype, or does it actually work?

**URL:** <https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990>\
**Category:** AWS Cloud Talk\
**Created:** [April 30, 2025, 2:05am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990 "2025-04-30T02:05:40Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwcesign](https://awshq.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jwcesign](https://awshq.com/u/jwcesign)\
**Post date:** [April 30, 2025, 2:05am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/1 "2025-04-30T02:05:40Z")

</div>

When using spot instances across different public cloud providers, many products claim to be able to predict interruption times and proactively replace instances before they are interrupted. Is this really possible?  
For example:

![](https://preview.redd.it/qn7s21ixqvxe1.png?width=1852&format=png&auto=webp&s=76579ec4d4d23ed1d687cfed1a77ff5b7a99f8f6)

---

<div class="post-metadata">

**Author:** ![littlbrown](https://awshq.com/letter_avatar_proxy/v4/letter/l/ce7236/32.png) [@littlbrown](https://awshq.com/u/littlbrown)\
**Post date:** [April 30, 2025, 2:16am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/2 "2025-04-30T02:16:37Z")

</div>

“can” but then they say they are still training it.

Not sure why it needs to be AI and predict so early. I’ve seen services claim they can do this just using the built in warning from AWS

---

<div class="post-metadata">

**Author:** ![jwcesign](https://awshq.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jwcesign](https://awshq.com/u/jwcesign)\
**Post date:** [April 30, 2025, 2:21am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/3 "2025-04-30T02:21:17Z")

</div>

> [@littlbrown](#):
>
> “can” but then they say they are still training it. Not sure why it needs to be AI and predict so early. I’ve seen services claim they can do this just using the built in warning from AWS

Thanks, bro

---

<div class="post-metadata">

**Author:** ![mikebailey](https://awshq.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mikebailey](https://awshq.com/u/mikebailey)\
**Post date:** [April 30, 2025, 2:25am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/4 "2025-04-30T02:25:03Z")

</div>

> [@littlbrown](#):
>
> “can” but then they say they are still training it. Not sure why it needs to be AI and predict so early. I’ve seen services claim they can do this just using the built in warning from AWS

If you have processes that take longer than 2 minutes but shorter than 30 to gracefully kill (probably a lot of them) this wouldn’t hurt

---

<div class="post-metadata">

**Author:** ![littlbrown](https://awshq.com/letter_avatar_proxy/v4/letter/l/ce7236/32.png) [@littlbrown](https://awshq.com/u/littlbrown)\
**Post date:** [April 30, 2025, 2:27am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/5 "2025-04-30T02:27:36Z")

</div>

> [@mikebailey](#):
>
> If you have processes that take longer than 2 minutes but shorter than 30 to gracefully kill (probably a lot of them) this wouldn’t hurt

True.  
The service I saw claimed to be able to snapshot the machine within the two minutes and resume it on another. So there is a pause but no need to terminate the process.  
To be fair, I don’t know if this service’s claims live up to the promises either.

---

<div class="post-metadata">

**Author:** ![MinionAgent](https://awshq.com/letter_avatar_proxy/v4/letter/m/e36b37/32.png) [@MinionAgent](https://awshq.com/u/MinionAgent)\
**Post date:** [April 30, 2025, 3:03am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/6 "2025-04-30T03:03:22Z")

</div>

> [@jwcesign](#):
>
> Thanks, bro

You also have the rebalance recommendation, there is no guarantee of how early you will receive it, but it is worth a try.

---

<div class="post-metadata">

**Author:** ![Mishoniko](https://awshq.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@Mishoniko](https://awshq.com/u/Mishoniko)\
**Post date:** [April 30, 2025, 3:16am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/7 "2025-04-30T03:16:48Z")

</div>

Conceptually, if you have enough visibility into spot activity in a particular Region, you could build predictions based on when you start getting shutdown notifications–there’s probably more coming-- or if there are notifications that arrive on schedules (i.e., 7am Eastern time every morning).

---

<div class="post-metadata">

**Author:** ![jwcesign](https://awshq.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jwcesign](https://awshq.com/u/jwcesign)\
**Post date:** [April 30, 2025, 4:03am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/8 "2025-04-30T04:03:13Z")

</div>

> [@Mishoniko](#):
>
> Conceptually, if you have enough visibility into spot activity in a particular Region, you could build predictions based on when you start getting shutdown notifications–there’s probably more coming-- or if there are …

This implies that interruptions still occur, and worse, during sudden spikes in capacity demand, instances may not have enough time to gradually evacuate or be rescheduled, leading to potential downtime or service degradation.

---

<div class="post-metadata">

**Author:** ![Mishoniko](https://awshq.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@Mishoniko](https://awshq.com/u/Mishoniko)\
**Post date:** [April 30, 2025, 4:07am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/9 "2025-04-30T04:07:37Z")

</div>

> [@jwcesign](#):
>
> This implies that interruptions still occur, and worse, during sudden spikes in capacity demand, instances may not have enough time to gradually evacuate or be rescheduled, leading to potential downtime or service …

I was speaking in terms of how to build a predictive model, not how to keep spot interruptions from happening.

---

<div class="post-metadata">

**Author:** ![jwcesign](https://awshq.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jwcesign](https://awshq.com/u/jwcesign)\
**Post date:** [April 30, 2025, 4:09am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/10 "2025-04-30T04:09:40Z")

</div>

> [@Mishoniko](#):
>
> I was speaking in terms of how to build a predictive model, not how to keep spot interruptions from happening.

Got it

---

<div class="post-metadata">

**Author:** ![hexfury](https://awshq.com/letter_avatar_proxy/v4/letter/h/3e96dc/32.png) [@hexfury](https://awshq.com/u/hexfury)\
**Post date:** [April 30, 2025, 4:16am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/11 "2025-04-30T04:16:16Z")

</div>

Karpenter for K8s handles this by having an sqs queue that is populated by an event bridge rule to notify a queue when an spot instance termination signal is sent.

This gives K8s about 2mins to provision another node and migrate workloads.

Works well, IMHO.

---

<div class="post-metadata">

**Author:** ![ElectricSpice](https://awshq.com/letter_avatar_proxy/v4/letter/e/bb73d2/32.png) [@ElectricSpice](https://awshq.com/u/ElectricSpice)\
**Post date:** [April 30, 2025, 4:24am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/12 "2025-04-30T04:24:10Z")

</div>

I’m a bit confused what the value prop is here: “if we predict your spot instance will be shut down, we’ll shut it down first”

---

<div class="post-metadata">

**Author:** ![jwcesign](https://awshq.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jwcesign](https://awshq.com/u/jwcesign)\
**Post date:** [April 30, 2025, 5:54am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/13 "2025-04-30T05:54:08Z")

</div>

> [@hexfury](#):
>
> Karpenter for K8s handles this by having an sqs queue that is populated by an event bridge rule to notify a queue when an spot instance termination signal is sent. This gives K8s about 2mins to provision another node …

If two minutes is ok in your scenario, interruption prediction is not necessary

---

<div class="post-metadata">

**Author:** ![EgoistHedonist](https://awshq.com/letter_avatar_proxy/v4/letter/e/278dde/32.png) [@EgoistHedonist](https://awshq.com/u/EgoistHedonist)\
**Post date:** [April 30, 2025, 10:20am UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/14 "2025-04-30T10:20:10Z")

</div>

> [@hexfury](#):
>
> Karpenter for K8s handles this by having an sqs queue that is populated by an event bridge rule to notify a queue when an spot instance termination signal is sent. This gives K8s about 2mins to provision another node …

Yep. We run hundreds of spot nodes and not a single outage caused by spot interruption

---

<div class="post-metadata">

**Author:** ![KayeYess](https://awshq.com/letter_avatar_proxy/v4/letter/k/f17d59/32.png) [@KayeYess](https://awshq.com/u/KayeYess)\
**Post date:** [April 30, 2025, 12:00pm UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/15 "2025-04-30T12:00:03Z")

</div>

If the standard EC2 instance rebalance recommendation and Spot Instance interruption notice don’t suffice kfor any critical workloads, I would mainly rely on these two), this could help but as with any AI prediction, it won’t be perfect.

---

<div class="post-metadata">

**Author:** ![DarkRyoushii](https://awshq.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@DarkRyoushii](https://awshq.com/u/DarkRyoushii)\
**Post date:** [April 30, 2025, 12:19pm UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/16 "2025-04-30T12:19:01Z")

</div>

> [@EgoistHedonist](#):
>
> Yep. We run hundreds of spot nodes and not a single outage caused by spot interruption

How are you doing node over-provisioning using Karpenter?

---

<div class="post-metadata">

**Author:** ![EgoistHedonist](https://awshq.com/letter_avatar_proxy/v4/letter/e/278dde/32.png) [@EgoistHedonist](https://awshq.com/u/EgoistHedonist)\
**Post date:** [April 30, 2025, 1:40pm UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/17 "2025-04-30T13:40:41Z")

</div>

> [@DarkRyoushii](#):
>
> How are you doing node over-provisioning using Karpenter?

Not actually a Karpenter feature. Just create a deployment that uses [registry.k8s.io/pause](http://registry.k8s.io/pause) as the image and has the amount of overprovisioned resources as requests. It should also have a priorityclass with priority value -1. Then it just idles and reserves resources, and as soon as some service with a normal priorityclass needs the resources, it gets terminated and rescheduled, which will lead to Karpenter launching a new node to house it.

You can also quickly scale the overprovisioning amount by increasing the replica count of the overprovisioning-deployment.

---

<div class="post-metadata">

**Author:** ![magheru\_san](https://awshq.com/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@magheru\_san](https://awshq.com/u/magheru_san)\
**Post date:** [April 30, 2025, 4:45pm UTC](https://awshq.com/t/is-spot-instance-interruption-prediction-just-hype-or-does-it-actually-work/19990/18 "2025-04-30T16:45:56Z")

</div>

It can work but the problem is it works at the capacity pool level.

The question is how do you handle it when it triggers a notification that the entire capacity pool is in danger of termination? Will you starts replacing all your instances from that capacity pool at once?

Chances are if you don’t use any such recommendations and just let instances to be terminated, only a small subset of them will actually be claimed by AWS, which is much less disruptive than a massive reshuffling of everything.

I’m building a Spot orchestration product for almost a decade now and also for a while used to work at AWS as Specialist Solution Architect for Spot.

Many AWS customers using the rebalancing recommendation events were impacted when their entire capacity was replaced, and I repeatedly saw the same with customers of my own product.

I eventually changed my product to just let the instances get terminated. Nobody complained afterwards about not having enough capacity.
