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
healthcheck:
test: [ "CMD", "wget", "http://127.0.0.1:3000", "-qO", "/dev/null" ]
interval: 5s
interval: 30s
retries: 10
networks:
adguardhome:

View File

@ -37,7 +37,7 @@ services:
- host.docker.internal:172.17.0.1
healthcheck:
test: [ "CMD", "traefik", "healthcheck", "--ping" ]
interval: 5s
interval: 30s
retries: 10
sonarr:
image: lscr.io/linuxserver/sonarr
@ -52,7 +52,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8989/sonarr/ping" ]
interval: 5s
interval: 30s
retries: 10
labels:
- traefik.enable=true
@ -82,7 +82,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:7878/radarr/ping" ]
interval: 5s
interval: 30s
retries: 10
labels:
- traefik.enable=true
@ -112,7 +112,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8686/lidarr/ping" ]
interval: 5s
interval: 30s
retries: 10
labels:
- traefik.enable=true
@ -142,7 +142,7 @@ services:
restart: always
healthcheck:
test: ["CMD", "wget", "http://127.0.0.1:5055/api/v1/status", "-qO", "/dev/null"]
interval: 5s
interval: 30s
retries: 10
labels:
- traefik.enable=true
@ -212,7 +212,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:9696/prowlarr/ping" ]
interval: 5s
interval: 30s
retries: 10
labels:
- 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
# see: https://github.com/qdm12/gluetun/issues/641#issuecomment-933856220
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8080", "https://google.com" ]
interval: 5s
interval: 30s
retries: 10
network_mode: "service:vpn"
depends_on:
@ -386,7 +386,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8096/jellyfin/health" ]
interval: 5s
interval: 30s
retries: 10
labels:
- traefik.enable=true
@ -418,7 +418,7 @@ services:
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8123" ]
interval: 5s
interval: 30s
retries: 10
privileged: true
labels:

View File

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

View File

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