Skip to content
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

our price ordering no longer provides the guarantee that made this work #1555

Merged
merged 4 commits into from
Mar 22, 2022

Conversation

tzneal
Copy link
Contributor

@tzneal tzneal commented Mar 21, 2022

1. Issue, if available:
N/A

2. Description of changes:

Remove packing optimization that doesn't work with arbitrary price sorting.

3. How was this change tested?

Unit tests & by hand on EKS

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Mar 21, 2022

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 21bb158
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/623a25c0fdfe690008d9404a

@tzneal tzneal requested review from bwagner5 and ellistarn March 21, 2022 21:40
bestPackedPods = result.packed
remainingPods = result.unpacked
break
// reached the max that we care about
if len(bestInstances) == MaxInstanceTypes {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we filter out instance types in the CP now, it might make sense to just move the MaxInstanceTypes to the CP or increase this value. It might make the bin-packer do a lot more work though...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, build this on a branch and whole hog move towards a unified scheduler/binpacker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the next step, but right now it sometimes creates instance types that are too small. Was hoping to get this in as a patch before any release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we filter out instance types in the CP now, it might make sense to just move the MaxInstanceTypes to the CP or increase this value. It might make the bin-packer do a lot more work though...

I think it will with a converged scheduler/bin packer. I think scheduling costs will dominate any bin packing cost anyway.

@tzneal tzneal force-pushed the fix-packing-bug branch 2 times, most recently from 53940b7 to 6453d73 Compare March 22, 2022 02:43
Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Get an approval from @bwagner5

@tzneal tzneal requested a review from bwagner5 March 22, 2022 19:02
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tzneal tzneal merged commit ca7081c into aws:main Mar 22, 2022
@tzneal tzneal deleted the fix-packing-bug branch March 22, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants