fix(healthcheck): Reduce healthcheck interval to decrease CPU usage

This commit is contained in:
Adrien Poupa 2024-01-19 00:41:05 -05:00
parent d5e729c8fc
commit 7de5076622
4 changed files with 13 additions and 13 deletions

View File

@ -19,7 +19,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "wget", "http://127.0.0.1:3000", "-qO", "/dev/null" ] test: [ "CMD", "wget", "http://127.0.0.1:3000", "-qO", "/dev/null" ]
interval: 5s interval: 30s
retries: 10 retries: 10
networks: networks:
adguardhome: adguardhome:

View File

@ -37,7 +37,7 @@ services:
- host.docker.internal:172.17.0.1 - host.docker.internal:172.17.0.1
healthcheck: healthcheck:
test: [ "CMD", "traefik", "healthcheck", "--ping" ] test: [ "CMD", "traefik", "healthcheck", "--ping" ]
interval: 5s interval: 30s
retries: 10 retries: 10
sonarr: sonarr:
image: lscr.io/linuxserver/sonarr image: lscr.io/linuxserver/sonarr
@ -52,7 +52,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8989/sonarr/ping" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8989/sonarr/ping" ]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -82,7 +82,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:7878/radarr/ping" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:7878/radarr/ping" ]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -112,7 +112,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8686/lidarr/ping" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8686/lidarr/ping" ]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -142,7 +142,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: ["CMD", "wget", "http://127.0.0.1:5055/api/v1/status", "-qO", "/dev/null"] test: ["CMD", "wget", "http://127.0.0.1:5055/api/v1/status", "-qO", "/dev/null"]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -212,7 +212,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:9696/prowlarr/ping" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:9696/prowlarr/ping" ]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -262,7 +262,7 @@ services:
# Container may fail if the PIA's token expired, so mark as unhealthy when there is no internet connection # Container may fail if the PIA's token expired, so mark as unhealthy when there is no internet connection
# see: https://github.com/qdm12/gluetun/issues/641#issuecomment-933856220 # see: https://github.com/qdm12/gluetun/issues/641#issuecomment-933856220
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8080", "https://google.com" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8080", "https://google.com" ]
interval: 5s interval: 30s
retries: 10 retries: 10
network_mode: "service:vpn" network_mode: "service:vpn"
depends_on: depends_on:
@ -386,7 +386,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8096/jellyfin/health" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8096/jellyfin/health" ]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -418,7 +418,7 @@ services:
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8123" ] test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8123" ]
interval: 5s interval: 30s
retries: 10 retries: 10
privileged: true privileged: true
labels: labels:

View File

@ -19,7 +19,7 @@ services:
- ./joplin/healthcheck:/healthcheck - ./joplin/healthcheck:/healthcheck
healthcheck: healthcheck:
test: ["CMD", "node", "/healthcheck/healthcheck.js"] test: ["CMD", "node", "/healthcheck/healthcheck.js"]
interval: 5s interval: 30s
retries: 10 retries: 10
labels: labels:
- traefik.enable=true - traefik.enable=true

View File

@ -11,7 +11,7 @@ services:
- tandoor-staticfiles:/opt/recipes/staticfiles - tandoor-staticfiles:/opt/recipes/staticfiles
healthcheck: healthcheck:
test: ["CMD", "wget", "http://127.0.0.1:8080/recipes", "-qO", "/dev/null"] test: ["CMD", "wget", "http://127.0.0.1:8080/recipes", "-qO", "/dev/null"]
interval: 5s interval: 30s
retries: 10 retries: 10
profiles: profiles:
- tandoor - tandoor
@ -28,7 +28,7 @@ services:
- tandoor-staticfiles:/static:ro - tandoor-staticfiles:/static:ro
healthcheck: healthcheck:
test: ["CMD", "wget", "http://127.0.0.1/recipes", "-qO", "/dev/null"] test: ["CMD", "wget", "http://127.0.0.1/recipes", "-qO", "/dev/null"]
interval: 5s interval: 30s
retries: 10 retries: 10
depends_on: depends_on:
- tandoor - tandoor