atlassian / escalator

Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
Apache License 2.0
646 stars 58 forks source link

Add AWS EC2 Spot capability #183

Closed haugenj closed 4 years ago

haugenj commented 4 years ago

Howdy! 👋

My name's Jason, I work for AWS down in Austin, TX. We would like to add EC2 Spot support to Escalator to expand customers' options when using AWS as the cloud provider. If you're unfamiliar with Spot, it's a different purchasing model for EC2 instances that can give up to a 90% discount rate on instance pricing, with the compromise of possibly being interrupted. Here's some official documentation.

Our proposed design would follow the same path as the current On Demand path, using setASGDesiredSizeOneShot to request instances. To enable Spot we would:

Let me know what you think, we're excited to get working on this!

- Jason

awprice commented 4 years ago

Thanks for raising this @haugenj! This request sounds perfectly reasonable and we look forward to your PR. +1 on keeping the backwards compatibility and default behaviour the same.