-
Notifications
You must be signed in to change notification settings - Fork 846
Adding IOPS Increase On Resize If iopspergb & allowautoiopsincreaseonresize are set #2635
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
base: master
Are you sure you want to change the base?
Conversation
/hold Unit tests need to be added after initial rev is reviewed. |
e825560
to
f18c9a7
Compare
d46dd5a
to
5bfc434
Compare
Code Coverage Diff
|
5bfc434
to
93ead5c
Compare
93ead5c
to
28ee283
Compare
[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 |
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.
Significantly improved versus the previous version, did some manual testing but want to do a more comprehensive test for the final revision. Left some new comments but most should be very easy to address.
} else { | ||
req.Iops = aws.Int32(capIOPS(string(volTypeToUse), sizeToUse, iopsValue, IopLimits, false)) | ||
} | ||
options.IOPS = *req.Iops |
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.
Would it make the code saner if we passed req
into validateModifyVolume
instead of options
?
What type of PR is this?
/kind feature
What is this PR about? / Why do we need it?
This PR adds a way for allowing IOPS to be increased if a volume is resized and
IopsPerGB
is set. This way the ratio will remain as expected after a resize, in order to use this featureallowautoiopsincreaseonresize
must be set to true as well.This PR also adds
iopspergb
as a VAC parameter so that it can be changed.How was this change tested?
As of this first revision, no unit tests have been added
or existing ones have been modified, manual testing listed below. Unit tests will be a part of revision 2 after initial rev is reviewedManual Tests Performed:
iopspergb
ratio and ensuring IOPS are adjusted correctly to new size and ratio ✅iopspergb
set butallowautoiopsincreaseonresize
not set/set to false, ensure that resize happens but no IOPS are adjusted ✅iopspergb
is increased and IOPS are adjusted accordingly depending on volume size ✅allowautoiopsincreaseonresize
is set to true after initial volume creation, and then resizes. IOPS are adjusted accordingly ✅Does this PR introduce a user-facing change?