-
Notifications
You must be signed in to change notification settings - Fork 107
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: add MaxNodeUtilizationPercent in ReclaimedResourceConfiguration #592
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #592 +/- ##
==========================================
- Coverage 57.18% 57.03% -0.16%
==========================================
Files 558 566 +8
Lines 54146 54508 +362
==========================================
+ Hits 30966 31087 +121
- Misses 19305 19510 +205
- Partials 3875 3911 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a666b97
to
9f2e149
Compare
9f2e149
to
dbc797f
Compare
} | ||
|
||
c.CPUHeadroomConfiguration.ApplyConfiguration(conf) | ||
c.MemoryHeadroomConfiguration.ApplyConfiguration(conf) | ||
} | ||
|
||
func (c *ReclaimedResourceConfiguration) GetReservedResourceForAllocate(nodeResourceList v1.ResourceList) v1.ResourceList { |
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.
It may be better for GetReservedResourceForAllocate to use resource name and quantity as two separate input parameters.
What type of PR is this?
Enhancements
What this PR does / why we need it:
Add parameter MaxNodeUtilizationPercent,which will be converted to reservedForAllocated to limit the total amount of reclaimed resources.
PR should be updated after kubewharf/katalyst-api#85 is merged