-
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
♻️ Containers are also removed via agent when the dynamic-sidecar is stopped (⚠️ devops) #6924
♻️ Containers are also removed via agent when the dynamic-sidecar is stopped (⚠️ devops) #6924
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6924 +/- ##
==========================================
- Coverage 87.11% 86.92% -0.19%
==========================================
Files 1608 1441 -167
Lines 63507 59803 -3704
Branches 2024 1635 -389
==========================================
- Hits 55322 51985 -3337
+ Misses 7851 7547 -304
+ Partials 334 271 -63
Continue to review full report in Codecov by Sentry.
|
…d-containers-removal
…d-containers-removal
services/agent/src/simcore_service_agent/services/containers_manager.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 looks good, i have some minor questions. full disclosure: I only read the code not the tests.
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.
Just to be sure I understand that change correctly.
So now you will call from the dv-2 on all the agents to remove containers with some UUID correct?
- when is this call done exactly?
- will it have any incidence if the call fails in one agent? like a returned exception? will this stop something in the dv-2 from running correctly?
- will this have an influence on performance? when I start the service anew? (for example in auto-scaled deployments, most probably the dangling container is gone with the machine)
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/agent/containers.py
Outdated
Show resolved
Hide resolved
services/agent/src/simcore_service_agent/services/containers_manager.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.
👀
Not precisely. This works as follows:
|
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.
We finally resolved the disagreements in person, thanks a lot and good for me :--)
services/agent/src/simcore_service_agent/services/containers_manager.py
Outdated
Show resolved
Hide resolved
…d-containers-removal
…d-containers-removal
…tHK/osparc-simcore-forked into pr-osparc-orphaned-containers-removal
Quality Gate passedIssues Measures |
devops⚠️
Additional steps are required when releasing:
dy-sidecar-
Procedure was applied to
Master:
Staging:
Prod:
What do these changes do?
When cleaning up all resources used by a new style dynamic service, the
director-v2
will now also ask theagent
to remove all possible left over containers from the latest run of the service.Agent searches for all possible containers with a certain prefix that identify a
proxy
,sidecar
oruser service
for a given node_id. If any container is found, it is removed.Related issue/s
How to test
Dev-ops checklist