-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨Personalized resource limits: add DB table for max resources per user 🗃️ #4335
✨Personalized resource limits: add DB table for max resources per user 🗃️ #4335
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4335 +/- ##
========================================
+ Coverage 84.1% 86.7% +2.6%
========================================
Files 976 840 -136
Lines 41881 37085 -4796
Branches 983 449 -534
========================================
- Hits 35247 32183 -3064
+ Misses 6424 4794 -1630
+ Partials 210 108 -102
Flags with carried forward coverage won't be shown. Click here to find out more.
|
b5adcfe
to
d8cd193
Compare
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.
Sounds a big improvement! So this new table will make the changes in resources temporary? So this will not happen anymore?
all the instances of the overriden service will use the overriden specifications (if the user once needed a 96GB service, then all instances of that service will now require that amount)
Minor: in the PR description, I guess you wanted to add the direct link to the issue (and not the link via the Github project board).
well hold a bit the horses ;) it's not yet complete. that is only the table. |
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.
read it briefly, very cool stuff, thanks!
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.
Well done! Code is spotless!
packages/postgres-database/src/simcore_postgres_database/models/services_limitations.py
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/services_limitations.py
Outdated
Show resolved
Hide resolved
fix sql 2.0
raise if not found
Revert "fix reqs" This reverts commit 1b089dc.
46ae7a7
to
940c6e1
Compare
Code Climate has analyzed commit 58c7cf0 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
We can currently override the resources a service uses per group ID via the services_specifications table. It has a number of drawbacks:
Nevertheless it saved us when the dynamic sidecar was not stable and allowed the autoscaling to come up switftly.
This new table is the beginning of:
Related issue/s
How to test
cd packages/postgres-database make install-dev make tests
DevOps Checklist