-
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
✨Adds reserved disk space to dynamic-sidecar #5161
✨Adds reserved disk space to dynamic-sidecar #5161
Conversation
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/emergency_space.py
Outdated
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5161 +/- ##
=========================================
- Coverage 87.3% 68.3% -19.1%
=========================================
Files 1280 531 -749
Lines 52567 26840 -25727
Branches 1141 198 -943
=========================================
- Hits 45943 18357 -27586
- Misses 6379 8433 +2054
+ Partials 245 50 -195
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…rgency-disk-space
…/osparc-simcore-forked into pr-osparc-add-emergency-disk-space
…rgency-disk-space
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.
👍
Code Climate has analyzed commit 105f60c and detected 0 issues on this pull request. View more on Code Climate. |
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.
Ok I like the idea. You reserve some space that is always available for the preferences. That is very nice.
Now I have a few suggestions/questions here:
- can you maybe rename this space from "emergency" to "reserved" ?
- would it not be possible to automatically free it just before saving the preferences instead of all that manual stuff that I guess you will need to do if this happens?
- alternatively, why not have the preferences with the current values/defaults saved on start so that the space is already occupied and just needs to be rewritten?
- I guess this would also include possible screenshots? then the space might not be sufficient.
services/director-v2/src/simcore_service_director_v2/api/routes/dynamic_scheduler.py
Outdated
Show resolved
Hide resolved
✅
good point, did not think about it. will still leave in the functionality to remove it manually (since stuff can always go wrong)
I did not understand these last two points |
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.
thank you!
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
What do these changes do?
When the dynamic-sidecar starts it now reserves a block of 10MiB from the disk to be freed in case of emergencies.
If the underlying hosts runs out of disk space, this comes in handy.
Related issue/s
How to test
Dev Checklist
DevOps Checklist