-
Notifications
You must be signed in to change notification settings - Fork 158
Fix Hyperdisk Resize That Requires Iops/Throughput Adjustment #2054
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 Hyperdisk Resize That Requires Iops/Throughput Adjustment #2054
Conversation
666363b
to
94bbd44
Compare
f338a59
to
e2f6679
Compare
/test pull-gcp-compute-persistent-disk-csi-driver-e2e |
285b158
to
675de42
Compare
/assign @msau42 |
675de42
to
3893576
Compare
/test pull-gcp-compute-persistent-disk-csi-driver-verify |
/test pull-gcp-compute-persistent-disk-csi-driver-e2e |
This should be easy to add an e2e test for the presubmit? Let's submit this now though and add e2e later (which I think would be preferable to an internal GKE test). The e2e test could just be for the simple HdB case, testing thoughput and such gets harder with machine compatibility. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattcary, sunnylovestiramisu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-1.17 |
@sunnylovestiramisu: #2054 failed to apply on top of branch "release-1.17":
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. |
…eFix Fix Hyperdisk Resize That Requires Iops/Throughput Adjustment (cherry picked from commit 2858b94)
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently resizing for Hyperdisk is failing for cases that require IOPS or throughput getting updated in the same resize call.
Which issue(s) this PR fixes:
A hyperdisk-balanced with size 4Gi needs exactly 2000 IOPS, and 5Gi needs exactly 2500 IOPS. Disks 6Gi and more need a minimum of 3000 IOPS. When resizing a hyperdisk, there is a need to update IOPS as well.
For hyperdisk-extreme the min IOPS value is 2 IOPS per GiB, if a 64 GiB hyperdisk-extreme disk with 128 IOPS is resized to 65 GiB, the IOPS also need to be updated to 130.
For hyperdisk-ml it is more complicated, min IOPS is 16 IOPS per MBps of provisioned throughput, min throughput is the greater of 0.12 MBps per GiB and 400 MBps per disk. A 3334GiB hyperdisk-ml with 400 MBps throughput and initial 6400 IOPS resize to larger capacity will also need to update both throughput and IOPS.
Fixes #
Special notes for your reviewer:
Tested end to end in GCE clusters.
Does this PR introduce a user-facing change?: