Skip to content

fix: recompute eviction threshold for discovered memory - #9457

Open
maxsxu wants to merge 1 commit into
aws:mainfrom
maxsxu:max/fix-cached-memory-eviction-threshold
Open

fix: recompute eviction threshold for discovered memory#9457
maxsxu wants to merge 1 commit into
aws:mainfrom
maxsxu:max/fix-cached-memory-eviction-threshold

Conversation

@maxsxu

@maxsxu maxsxu commented Jul 28, 2026

Copy link
Copy Markdown

Fixes #9455

Description

  • recompute the hard memory eviction threshold whenever discovered memory capacity replaces the fallback instance-type capacity
  • preserve absolute and default memory eviction thresholds while leaving ephemeral-storage calculations unchanged
  • cover percentage, absolute, and default thresholds and verify the resulting allocatable memory

How was this change tested?

  • go test ./pkg/controllers/providers/instancetype/capacity ./pkg/providers/instancetype
  • make presubmit

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

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

@maxsxu
maxsxu requested a review from a team as a code owner July 28, 2026 10:07
@maxsxu
maxsxu requested a review from Ignoramuss July 28, 2026 10:07
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.

Percentage eviction threshold is stale after discovered memory capacity is cached

1 participant