News for hackers. Stuff that matters.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by varelaz on Tuesday February 25, 2020 @06:29AM (#22412350)
Well I don't think that using spot instances is a very good thing to consider there.

1) What if all of them go down would it make application unusable? I recall one or two weeks on AWS when all spots were down because of capacity problems.

2) You cannot rely on requests to complete on spot instances they can go up and down when they need. For background jobs it's fine, you can retry, but for UX?

And if you need to choose this approach to save your costs instead of migration to bare metal, which is usually ~10 times less than AWS then something is wrong with your architecture and you are locked.

Re:We use Kubernetes and spot instances to reduce EC2 billin... by f0rmatfunction on Tuesday February 25, 2020 @07:35AM (#22412630)
For 2 - horizontal scaling would address this. If there are 2+ copies of the service running behind a load balancer, either can go down/be recreated as an on demand instance if the spot capacity is revoked. AWS (and I’m guessing the other cloud platforms too) has a container service that will dynamically add containers to the load balancer for you
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Tuesday February 25, 2020 @07:35AM (#22412629)
> save your costs instead of migration to bare metal,

like i mentioned in other comments. due to our use cases, bare metal is out of question since the clients (airlines) would very much prefer we use AWS over the smaller, lesser known offering.

Re:We use Kubernetes and spot instances to reduce EC2 billin... by varelaz on Tuesday February 25, 2020 @12:55PM (#22415384)
We had recent migration from AWS to Hetzner. We used combined clusters with ondemand + spot instances. After migration to Hetzner we doubled capacity and still saved around half. AWS is very good for flexible work loads, but if load and process is constant and well defined, bare metal hosting much more effective. And there are a lot of well known bare metal hosting providers on the market.
Re:We use Kubernetes and spot instances to reduce EC2 billin... by tuananh on Wednesday February 26, 2020 @12:43AM (#22420610)
if workload is constant, nothing beats baremetal in term of cost.