-
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
Maintenance: adjust the labels set on all services to follow inversed url notation #3638
Comments
Please consider the logic for image labels (denoted "labels annotations" by OCI stds) to/from pydantic models developed in https://github.com/ITISFoundation/osparc-simcore/blob/master/packages/service-integration/src/service_integration/labels_annotations.py (see tests and other modules in library for usage xamples) There is also a good quality logic there to validate all metadata in images. |
Current situation on the docker labelsreminder:
legacy dynamic servicesThese tables describe the labels added onto the running services.
dy-sidecar servicesdy-sidecarhere the labels sub-divide between the dynamic-sidecar service, the dy-proxy service and the user-services
dy-proxy
user-services
computational services
|
From above:
|
Docker image labels
Proposal for docker service/container labels
|
dynamic-sidecar
|
Thanks for this very verbose summary, I am absolutely in favor of doing a cleanup here :) I have checked our grafana dashbaords and it seems the only label we really use is TL;DR: green light from my side, if you change things here we will address any minor issues once they pop up :) |
@sanderegg For resource tracking/billing purposes as discussed we will start with scraping the sidecars (the benefit of this is that when the service consists of more sub-services, where the user can set up all the resources, we have all the information there. The disadvantage is that we have problems with hanging sidecars - but we can address them + we will have the second data source from director-v2). Also, we would like to store the AWS instance type on which the service is running.
|
Currently the services/container run as service have the following hard-coded labels:
These should be replaced by (also NOTE that _ are not recommended by docker for keys)
There is code ready to be used for this in
services/autoscaling/src/simcore_service_autoscaling/models.py
with function to read from a Task and generate the dict[str,str] as well.
Tasks
The text was updated successfully, but these errors were encountered: