Skip to content

Commit

Permalink
fix(healthcheck): Reduce healthcheck interval to decrease CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPoupa committed Jan 19, 2024
1 parent d5e729c commit 7de5076
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion adguardhome/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion joplin/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tandoor/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7de5076

Please sign in to comment.