-
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
♻️ Refactor DiskUsage functionality to support efs-guardian #6536
♻️ Refactor DiskUsage functionality to support efs-guardian #6536
Conversation
…disk-usage-notification
…disk-usage-notification
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6536 +/- ##
=========================================
+ Coverage 84.5% 85.9% +1.3%
=========================================
Files 10 1395 +1385
Lines 214 59940 +59726
Branches 25 1571 +1546
=========================================
+ Hits 181 51501 +51320
- Misses 23 8202 +8179
- Partials 10 237 +227
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…disk-usage-notification
…disk-usage-notification
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.
lgtm
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.
I do not quite follow the need to remove the path from the point of view of the sidecar. these are still mounted paths for it so why change that?
maybe we can discuss tomorrow..
packages/models-library/src/models_library/api_schemas_dynamic_sidecar/telemetry.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/rabbitmq.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/notifications/_notifier.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.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.
Thx for the PR. I left some suggestions but I am not sure i fully grasp the idea here. Perhaps you can show me offline? thx
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_disk_usage.py
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
Outdated
Show resolved
Hide resolved
...es/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/system_monitor/_disk_usage.py
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 👍
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.
👍🏼
…disk-usage-notification
packages/models-library/src/models_library/api_schemas_dynamic_sidecar/telemetry.py
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
packages/models-library/src/models_library/api_schemas_dynamic_sidecar/telemetry.py
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_dynamic_sidecar/telemetry.py
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
What do these changes do?
It is now possible to overwrite DiskUsage for some paths mounted by the
dynamic-sidecar
. This is done via an RPC endpoint and should be used by theefs-guardian
service.Example data to send:
Before this change disk usage was propagated to the frontend via dictionary containing paths and quotas. Paths are no longer supported and have been replaced with labels.
The
disk_usage
object supports the following keysHOST
andSTATES_VOLUMES
which identify:HOST
machine where the service was startedSTATES_VOLUMES
which can be provided via EFS and are optional.If this entry is not present all quotas are aggregated in theHOST
Currently the frontend only uses the
HOST
label, which should always be presentExample 1: all volumes exist on same machine
Example 2: state volumes are mounted via EFS
Related issue/s
How to test
Dev-ops checklist