-
Notifications
You must be signed in to change notification settings - Fork 31
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
quotas: improve performance of quota updater #193
Labels
Comments
mdonadoni
added
type/enhancement
New feature or request
system/scalability
priority/longterm
labels
Jan 16, 2023
mdonadoni
added a commit
to mdonadoni/reana-db
that referenced
this issue
Aug 25, 2023
Improve the performance of the quota updater by "expunging" all workflows before starting to update quotas, as the Workflow table does not need to be modified, thus making commits much faster. Also refactor the various update functions to make their behaviour consistent with each other. Partially addresses reanahub#193
mdonadoni
added a commit
to mdonadoni/reana-db
that referenced
this issue
Aug 30, 2023
Improve the performance of the quota updater by "expunging" all workflows before starting to update quotas, as the Workflow table does not need to be modified, thus making commits much faster. Also refactor the various update functions to make their behaviour consistent with each other. Partially addresses reanahub#193
mdonadoni
added a commit
to mdonadoni/reana-db
that referenced
this issue
Sep 1, 2023
Improve the performance of the quota updater by "expunging" all workflows before starting to update quotas, as the Workflow table does not need to be modified, thus making commits much faster. Also refactor the various update functions to make their behaviour consistent with each other. Partially addresses reanahub#193
mdonadoni
added a commit
to mdonadoni/reana-db
that referenced
this issue
Sep 1, 2023
Partially addresses reanahub#193
See also #200 (comment) |
mdonadoni
added a commit
to mdonadoni/reana-db
that referenced
this issue
Sep 5, 2023
Partially addresses reanahub#193
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
The periodic quota updater takes a long time to complete when dealing with many workflows and/or with big workspaces.
These are some possible improvements:
Session.commit()
is called once for every workflow instore_workflow_disk_quota
(here and here). Instead, it should be called only once after all the quota updates have been calculated. This same improvements can also be applied to the other utility functions that are used to update the disk/cpu quotas of workflows and users. In particular, I have noticed thatSession.commit()
becomes slower the more workflows are loaded from the database.The text was updated successfully, but these errors were encountered: