-
Notifications
You must be signed in to change notification settings - Fork 26
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
✨ Ensure memory swap for computational services is same as memory (⚠️ devops) #3510
✨ Ensure memory swap for computational services is same as memory (⚠️ devops) #3510
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3510 +/- ##
=========================================
- Coverage 82.4% 67.5% -14.9%
=========================================
Files 834 349 -485
Lines 35446 17823 -17623
Branches 748 133 -615
=========================================
- Hits 29220 12038 -17182
+ Misses 6036 5736 -300
+ Partials 190 49 -141
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Nice, just some questions below
services/dask-sidecar/src/simcore_service_dask_sidecar/computational_sidecar/models.py
Show resolved
Hide resolved
services/dask-sidecar/src/simcore_service_dask_sidecar/computational_sidecar/models.py
Show resolved
Hide resolved
services/dask-sidecar/src/simcore_service_dask_sidecar/computational_sidecar/models.py
Outdated
Show resolved
Hide resolved
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.
Thanks a lot for implementing this, super! I hope we get the machines into a more predictable state with this :)
… smaller swap than memory
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
ensure memory-swap is set to the same value as memory limit if not set.
-1 disables it and any other value is equal to memory
MemorySwap = memory + swap
The PR effectively disables swapping for computational services.
Also @mrnicegyu11 concerning this #3506, this can to the best of my knowledge not happen in the dask-sidecar as it validates through pydantic and the 3 parameters in the use-case are not part of the pydantic model.
see https://github.com/itisfoundation/osparc-simcore/blob/59c34d86136ad0d4a2f584f2afc013ae32921ab7/services/dask-sidecar/src/simcore_service_dask_sidecar/computational_sidecar/docker_utils.py
Related issue/s
resolves #3507
#3506
Bonus:
How to test
Checklist
Assert that the kernel feature for cgroup swap memory limits is enabled on all machines where this is rolled out. Run
docker info
to check. See gitlab ops issue 307