Commit b950393c authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Actualiza límite de recursos para evitar caídas

parent aaa7b9a8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  prometheus:
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 1G
        reservations:
          cpus: '0.1'
          memory: 256M

volumes:
  prometheus:
    name: ${PROMETHEUS_VOL_NAME:-prometheus-vol}
+7 −0
Original line number Diff line number Diff line
@@ -6,6 +6,13 @@ services:
      placement:
        constraints:
          - node.role == worker
      resources:
        limits:
          cpus: '1'
          memory: 2G
        reservations:
          cpus: '0.1'
          memory: 512M

volumes:
  prometheus:
+0 −6
Original line number Diff line number Diff line
@@ -43,12 +43,6 @@ services:
      restart_policy:
        delay: 10s
        window: 2m
      resources:
        limits:
          cpus: '1'
          memory: 512M
        reservations:
          memory: 128M

networks:
  metric-net: