-
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
fix: make the pre-populated quota large enough #3419
Conversation
You can access the deployment of this PR at https://renku-ci-ui-3419.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 code looks good; I just have the following question: ⬇️
() => | ||
defaultSessionClass | ||
? { | ||
cpu: 2 * defaultSessionClass.cpu, |
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.
Why are we multiplying by two here? Shouldn't we simply use the default quota value? Alternatively, consider defining this multiplier as a separate constant with a self-explanatory name to clarify its purpose.
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.
These values are supposed to be changed by the admin to configure the resource pool anyway. The code makes sure that the values for the quota are higher than the values for the class, otherwise the backend will send back a 422 error. Using a 1x multiplier would allow only one session to ever be launched, so that looked too low.
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.
LGTM
Tearing down the temporary RenkuLab deplyoment for this PR. |
Fixes #3417.
Manually tested, working as intended.
/deploy