News for hackers. Stuff that matters.
Re:Farewell to the Era of Cheap EC2 Spot Instances by vasco on Friday May 05, 2023 @05:23PM (#35835316)
> I've seen the spot instances priced significantly higher than on-demand

How is the cap price not on-demand cost? Why would you not just swap to on-demand at the turning point?

Re:Farewell to the Era of Cheap EC2 Spot Instances by idunno246 on Friday May 05, 2023 @05:53PM (#35835559)
there's a cost to engineer something that automatically switches or someone going in and manually changing it. so the spot prices has to be higher than ondemand + switching costs. the new pricing models(a couple years old) though have mostly alleviated this
Re:Farewell to the Era of Cheap EC2 Spot Instances by paulddraper on Friday May 05, 2023 @06:09PM (#35835714)
Because you don't want to be pre-empted.
Re:Farewell to the Era of Cheap EC2 Spot Instances by alien_ on Tuesday May 09, 2023 @09:50AM (#35874273)
This is no longer the case. Back in 2018 AWS changed the pricing model so now there's no more bidding.

This means "bidding" more won't protect your capacity, AWS will just take it if they need it.

Prices are now relatively flat, and changing slightly over time by a fraction of a cent per day with a cap at the OnDemand price, while previously there used to be lots of from 0.1x to 10x the on demand price and with swings even multiple times within a day.

Re:Farewell to the Era of Cheap EC2 Spot Instances by jacurtis on Friday May 05, 2023 @06:23PM (#35835838)
This shocks me too. When I first had to design a system around spot instances I assumed it caps out at the on-demand price. But in practice that is very much not the case. The spot price can routinely go above on-demand, with all the downsides of spot still being applied to the instance.

It is because many systems are only built to support spot. When running a workload, they might not want to give up availability so they just pay the higher price. To be fair, this is a game that AWS engineers. They essentially want to kick people off the infrastructure to free it up for other uses. So this is a way to signal how badly you don't want to be kicked off. A lot of times after a price goes above on-demand pricing, it will dip down below fairly quickly as workloads all re-adjust. Some companies are willing to play that gamble, that a short period above on-demand is still cheaper in the long run when you average out the invoice at the end of the month.