ITISFoundation / osparc-ops-environments

osparc operations
MIT License
3 stars 6 forks source link

Introduce docker cpu/memory limits to every container #330

Closed YuryHrytsuk closed 9 months ago

YuryHrytsuk commented 1 year ago

Services:

YuryHrytsuk commented 1 year ago

Overview of services as of Aug. 29th 2023

Admin panels

Service count: 1 Only memory limit is set

Admin

Service count: 1 Only memory limit & reservation is set

Depl. agent

Service count: 1 No limits / reservations

Filestash

Service count: 1 Only memory limit is set

Graylog

Service count: 3

mongodb: no limites / reservations elasticsearch: only memory limit graylog: all limits & reservations are set

Jaeger

Service count: 1 Only memory limit

Minio

Service count: 1 No limits / reservations

Monitoring

Service count: 14 Limits :

PG_BACKUP

Service Count: 1 No limits/reservations

Portainer

Service count: 2 No limits / reservations are set

Redis-commander

Service count: 1 Only memory limit & reservation are set

Registry

Service count: 1 No limits / reservations are set

Simcore

Service count: 18

Traefik

Service count: 2

Traefik:

whoami:

mrnicegyu11 commented 1 year ago

We do not work on this before we an observe that it in production and be sure it doesn't break anything

YuryHrytsuk commented 11 months ago

How to evaluate container CPU usage

sum(rate(container_cpu_usage_seconds_total{container_label_com_docker_swarm_service_name="<service_name>"}[1m])) by (name)

How to evaluate container memory

container_memory_usage_bytes{name="<container_name>"}
YuryHrytsuk commented 10 months ago

Evaluating CPU Usage logic should be improved. It doesn't return meaningful results

mrnicegyu11 commented 9 months ago

Tracks duplicate https://github.com/ITISFoundation/osparc-ops-environments/issues/231