-
Notifications
You must be signed in to change notification settings - Fork 296
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
🌱 Add flag to reserve memory to the virtual machine memory size #2469
🌱 Add flag to reserve memory to the virtual machine memory size #2469
Conversation
|
Welcome @maximsnezhkov! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @maximsnezhkov. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1a65208
to
9cec761
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.
/ok-to-test
Thanks for the contribution @maximsnezhkov - it would be great to add this to an e2e test so we can ensure it works as expected. Do we know if there's limitations on which environments or versions of VSphere this is available on? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2469 +/- ##
==========================================
- Coverage 63.63% 63.50% -0.14%
==========================================
Files 122 122
Lines 8753 8759 +6
==========================================
- Hits 5570 5562 -8
- Misses 2773 2783 +10
- Partials 410 414 +4 ☔ View full report in Codecov by Sentry. |
You're welcome. As I understand it, this functionality has been available for use since at least 2013 (https://frankdenneman.nl/2013/02/21/reserve-all-guest-memory-all-locked/) |
/retest |
1 similar comment
/retest |
NumCPUs: numCPUs, | ||
NumCoresPerSocket: numCoresPerSocket, | ||
MemoryMB: memMiB, | ||
MemoryReservationLockedToMax: memLockedToMax, |
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.
MemoryReservationLockedToMax: memLockedToMax, | |
MemoryReservationLockedToMax: vmCtx.VSphereVM.Spec.MemoryReservationLockedToMax, |
We can directly reference that setting.
var memLockedToMax *bool | ||
if vmCtx.VSphereVM.Spec.MemoryReservationLockedToMax != nil { | ||
memLockedToMax = new(bool) | ||
*memLockedToMax = *vmCtx.VSphereVM.Spec.MemoryReservationLockedToMax | ||
} | ||
|
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.
var memLockedToMax *bool | |
if vmCtx.VSphereVM.Spec.MemoryReservationLockedToMax != nil { | |
memLockedToMax = new(bool) | |
*memLockedToMax = *vmCtx.VSphereVM.Spec.MemoryReservationLockedToMax | |
} |
Should not be required when directly referring below
@maximsnezhkov Are you still interested in pursuing this PR? (and do you have time to adress the open comments) |
/close See above |
@sbueringer: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
Add flag to configure memory reservation at VSphereMachineTemplate level.
Which issue(s) this PR fixes:
Fixes #2468