From 7de50766226709da9b8a92aede57e0e074015235 Mon Sep 17 00:00:00 2001 From: Adrien Poupa Date: Fri, 19 Jan 2024 00:41:05 -0500 Subject: [PATCH] fix(healthcheck): Reduce healthcheck interval to decrease CPU usage --- adguardhome/docker-compose.yml | 2 +- docker-compose.yml | 18 +++++++++--------- joplin/docker-compose.yml | 2 +- tandoor/docker-compose.yml | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/adguardhome/docker-compose.yml b/adguardhome/docker-compose.yml index fe19da9..c6cff45 100644 --- a/adguardhome/docker-compose.yml +++ b/adguardhome/docker-compose.yml @@ -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: diff --git a/docker-compose.yml b/docker-compose.yml index 34f2050..cb4bc6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/joplin/docker-compose.yml b/joplin/docker-compose.yml index 790cae7..ac4a563 100644 --- a/joplin/docker-compose.yml +++ b/joplin/docker-compose.yml @@ -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 diff --git a/tandoor/docker-compose.yml b/tandoor/docker-compose.yml index 01c9286..76f6e17 100644 --- a/tandoor/docker-compose.yml +++ b/tandoor/docker-compose.yml @@ -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