-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch from the spot capacity-optimized-prioritized allocation strategy to price-capacity-optimized #2835
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
…strategy to price-capacity-optimized
Co-authored-by: Jonathan Innis <jonathan.innis.ji@gmail.com>
Co-authored-by: Jonathan Innis <jonathan.innis.ji@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
This is awesome! Will it be part of the next release? When is the next release? |
Is there any update on this? Is it a default behaviour for Karpenter now? or can we change this behaviour through Provisioner? |
@malikdraz This is the default strategy for the latest versions of Karpenter. |
Fixes #
Description
capacity-optimized-prioritized
where we prioritized based on pricing data to a purpose-built allocation strategy that does a capacity-pricing trade-off by default on the EC2 Fleet side, calledprice-capacity-optimized
.https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-ec2-price-capacity-optimized-allocation-strategy-provisioning-ec2-spot-instances/
How was this change tested?
make test
Does this change impact docs?
Release Note
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pricing Capacity Optimized Spot Allocation Strategy
Provisioner default
Inflate Deployment
Capacity Optimized Prioritized Spot Allocation Strategy
kubectl scale deploy/inflate --replicas=10
cost-per-30-days=$112.50
kubectl scale deploy/inflate --replicas=20
cost-per-30-days=$140.70
Now let's change to use price-capacity-optimized
kubectl scale deploy/inflate --replicas=10
cost-per-30-days=$108.30
kubectl scale deploy/inflate --replicas=20
cost-per-30-days=$136.20
This equates to about a 3% discount, in this fairly contrived example, for basically the same capacity and chance of interruption.
Pricing