Skip to content

resize IOPS#52

Merged
boddumanohar merged 1 commit intomainfrom
setup-iops-using-volumeattr-class
Oct 21, 2025
Merged

resize IOPS#52
boddumanohar merged 1 commit intomainfrom
setup-iops-using-volumeattr-class

Conversation

@boddumanohar
Copy link
Copy Markdown
Member

@boddumanohar boddumanohar commented Sep 22, 2025

Setting IOPS during the initial branch create:

  • For every branch, we create a new storage class with name sc-<branch-id> and then pass it as a part of helm chart.

Resizing IOPS:

Ideally we should be using the CSI driver to support perform the IOPS resize using volume attributes class. But our CSI driver doesn't support MODIFY_VOLUME operation. This should be ideally supported as a part of the PR: simplyblock/simplyblock-csi#243. But due to the lack of time, I couldn't work on this PR right now.

So we call the storage cluster and update the IOPS directly.

  1. Get credentials to talk to the endpoints. URL, Authentication details etc..
  2. Get the Volume ID from the PV’s Source.VolumeAttributes.uuid
  3. Call the storage backend with the API

and this IOPS update status can also be seen in resize_statuses. We set the resize IOPS state as done we receive a 2XX response from the storage backend API.

@boddumanohar boddumanohar changed the title set IOPS using volume attribute class resize IOPS Oct 2, 2025
@boddumanohar boddumanohar force-pushed the setup-iops-using-volumeattr-class branch from d5b17fc to efe8e6d Compare October 20, 2025 06:49
@boddumanohar boddumanohar force-pushed the setup-iops-using-volumeattr-class branch from efe8e6d to 091c969 Compare October 21, 2025 13:22
@boddumanohar boddumanohar marked this pull request as ready for review October 21, 2025 13:32
Copy link
Copy Markdown
Collaborator

@noctarius noctarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really give feedback to the logic and I assume you tested it. This is a horrible hack and I wonder if we should document those hacks somewhere so they don't stay 😅

@boddumanohar
Copy link
Copy Markdown
Member Author

Yeah, the changes are tested and are working for both create branch and resize branch. I confirmed them by checking the field rw_ios_per_sec in the output of

sbctl lvol get pvc-12793616-d0a7-480f-a39d-80ca63d2a5d3 

@boddumanohar boddumanohar merged commit 891f150 into main Oct 21, 2025
4 checks passed
@boddumanohar boddumanohar deleted the setup-iops-using-volumeattr-class branch October 21, 2025 14:46
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.

2 participants