-
Notifications
You must be signed in to change notification settings - Fork 983
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
fix: Fix InstanceType cache invalidation on ICE eviction #5839
fix: Fix InstanceType cache invalidation on ICE eviction #5839
Conversation
✅ Deploy Preview for karpenter-docs-prod ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Pull Request Test Coverage Report for Build 8253944779Details
💛 - Coveralls |
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.
/karpenter snapshot
Snapshot successfully published to
|
4b5d79b
to
be35df0
Compare
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 🚀
Fixes #N/A
Description
This change fixes a bug that causes us to keep ICEd offerings in the cache for beyond their unavailability cache interval (up to 8m using the current code [3m unavailable offering expiry + 5m instance type expiry]). The current code handles the addition of unavailable offerings to the cache, but it doesn't handle the eviction from the cache. This update ensures that cache eviction triggers the sequence number to increase.
This also drops the cleanup interval for the cache so that we react quicker to this eviction.
Before PR (no cache eviction handling) ~4.5m re-availability
After PR (with cache eviction handling) - ~3m re-availability
How was this change tested?
make presubmit
/karpenter snapshot
Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.