Skip to content
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

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

leafty
Copy link
Member

@leafty leafty commented Nov 29, 2024

Fixes #3417.

Manually tested, working as intended.

/deploy

@leafty leafty temporarily deployed to renku-ci-ui-3419 December 2, 2024 08:14 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

RenkuBot commented Dec 2, 2024

You can access the deployment of this PR at https://renku-ci-ui-3419.dev.renku.ch

@leafty leafty marked this pull request as ready for review December 2, 2024 08:42
@leafty leafty requested a review from a team as a code owner December 2, 2024 08:42
@leafty leafty temporarily deployed to renku-ci-ui-3419 December 2, 2024 08:43 — with GitHub Actions Inactive
Copy link
Contributor

@andre-code andre-code left a 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,
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

@andre-code andre-code left a comment

Choose a reason for hiding this comment

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

LGTM

@leafty leafty merged commit e864cf8 into main Dec 3, 2024
19 checks passed
@leafty leafty deleted the leafty/fix-add-resource-pool branch December 3, 2024 10:10
@RenkuBot
Copy link
Contributor

RenkuBot commented Dec 3, 2024

Tearing down the temporary RenkuLab deplyoment for this PR.

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.

"Add resource pool" default class and quota do not match
3 participants