-
Notifications
You must be signed in to change notification settings - Fork 6
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: configure disk storage for Renku 2.0 sessions #3463
Conversation
You can access the deployment of this PR at https://renku-ci-ui-3463.dev.renku.ch |
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.
The session with the custom disk size work as expected, however I noticed a few things that could be improved:
- The disk size option isn’t visible until you change the resource class selector. It would be better if it was always visible when a resource class is selected. It only happens when the form is use for first time.
- If the disk size exceeds the available limit, the input shows an error, but the error message isn’t displayed. We should make sure the error message is shown when this happens.
- When trying to delete the current value with the keyboard, the toggle gets triggered instead, so it’s not possible to delete the value. This needs to be fixed so users can delete the value without triggering the toggle.
Also, I’m curious—why add the toggle to show the input instead of just keeping the input always visible? It could make the experience smoother for the user.
The question is: how to handle the difference between keeping the value unset (and thus using the default value from the resource class) and setting the value equal to the default for the resource class? |
After thinking about this, I wonder if we need to distinguish between default and manually set. |
Yes, because the default value can be changed by an admin, while a value specifically set here will only be changed by the project members. |
True, but would that make any difference to users with running sessions? Even if an admin changes the default, the running sessions won't be affected immediately. And we don't want to accidentally resize the disk while patching as well. |
This basically does not apply, disk storage can only affect new sessions. The disk is not resized upon pause/resume (that would be very disruptive). I think it would be good to merge a way to configure disk storage instead of insisting upon a better way to configure storage (you're free to patch it afterwards). |
Also, storing the value when not touched by users would prevent admins from "upgrading" the session classes. Right now, if an admin upgrades the default storage to be 4GB instead of 1GB, then all users without a value set would benefit from the upgrade. With your solution, no user would get the automatic upgrade to session storage. |
I totally agree with this:
I might have lost some bits here and there; I thought my suggestions implied less work, not more. And I'm afraid of the possible negative consequences of downsizing. Anyway, let's try to merge the changes and, if needed, we can adjust details later |
Why? This cannot affect any existing session. |
@lorenzo-cavazzi feel free to patch things here or make an alternate PR from here. |
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.
The code looks great and works as expected. It's intuitive, and the error messages are clear and helpful. Great job!
Tearing down the temporary RenkuLab deplyoment for this PR. |
Closes #3451.
Add an option to configure disk storage in 3 locations:
Breaking change: requires update to
renku-data-services
.Add launcher
Modify launcher's resource class
Custom launch
Offcanvas warning
This can happen if the disk storage was set through the API or if the admin changed the quotas on the resource pools.
/deploy renku-data-services=main