News for hackers. Stuff that matters.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by ryeguy on Monday February 24, 2020 @10:42PM (#22410747)
Why not use spot fleets to solve this? You can specify multiple acceptable instance types.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by threeseed on Monday February 24, 2020 @11:20PM (#22410888)
I can't speak for the other regions but in ap-southeast-2 we had a couple of incidents in 2019 where there was no Spot capacity for ANY instance types between say 64GB and 512GB of RAM.

And so even our instance fleets were failing to provision capacity.

Re:We use Kubernetes and spot instances to reduce EC2 billin... by ramraj07 on Tuesday February 25, 2020 @04:02AM (#22411781)
Requiring a minimum of 64GB RAM seems quite unique computationally, so if it's mission critical that you have at least one instance of this type all the time up, then maybe you could reserve that one instance fully while depending on spots for scaling?
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Tuesday February 25, 2020 @12:00AM (#22411027)
this is why ability to fall back to on-demand instances is critical.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by londons_explore on Tuesday February 25, 2020 @03:14AM (#22411617)
When there are no spot instances, it's common that on-demand instances can't be started either.

Unless you paid for a reservation, you're SOL.

Re:We use Kubernetes and spot instances to reduce EC2 billin... by maniktan on Monday March 02, 2020 @05:29PM (#22469749)
Fwiw, Product@SpotInst here. Curious what makes you arrive at this conclusion? At SpotInst we have customers who migrate between Spot <--> RI <--> OD everyday.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Tuesday February 25, 2020 @03:29AM (#22411672)
that's for you to decide how many percent of reserved instances out of total compute power you need. it's always a trade off. in that case, pct of cost saving is lower but availability is higher.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by paulddraper on Tuesday February 25, 2020 @12:33AM (#22411147)
It seems weird that AWS wouldn't just do this automatically, right?
Re:We use Kubernetes and spot instances to reduce EC2 billin... by llarsson on Tuesday February 25, 2020 @12:48AM (#22411193)
Yes and no. Because they do not want to disclose how much capacity they have and on demand costs more, customers would be left wondering if AWS unfairly decided to run on demand when spot could have been used instead.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by halbritt on Monday February 24, 2020 @11:03PM (#22410819)
I'm also puzzled why people wouldn't just use spot fleet with on-demand as backup.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Monday February 24, 2020 @11:33PM (#22410930)
because at the time when we did this (2016-2017), kops did not support spot fleet. worst case scenario, you get mix of reserved + ondemand instances.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by CoolGuySteve on Monday February 24, 2020 @11:34PM (#22410936)
I don't think I've ever seen spotfleet not satisfy a request with all the same instance type. When the instance gets terminated, it seems to fill again with the same instance type as before (and then get killed again in busy periods).

For the past few weeks I've been having this exact problem with GPU instances, where on-demand requests would kill my spotfleet instances in the middle of a job, I'd spin up again, get killed again a few minutes later.

The only way to fix it without rewriting a bunch of stuff was to blacklist that instance type from my spotfleet requests.

It definitely wasted a bunch of my time though which seems to be increasingly more common with newer AWS APIs.

Re:We use Kubernetes and spot instances to reduce EC2 billin... by maniktan on Monday March 02, 2020 @05:46PM (#22469908)
Fwiw, Product@SpotInst here. Might I suggest that you give us a try. We ward off against this specific scenario by calculating a Spot score based on Instance Type/AZ and deliver flexibility with a choice of different instance types.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Monday February 24, 2020 @11:32PM (#22410929)
because at the time when we did this (2016-2017), kops did not support spot fleet