From 3c0bd3703279294f06066c5201b83f3095ad83d6 Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Wed, 24 Jun 2026 16:30:01 +0200 Subject: [PATCH] perf(docker): poll healthcheck every 20s instead of 1s The 1s healthcheck spawns nc every second; on the container cgroup that is ~90% of the container's idle CPU (~3-4% on a t3.small vCPU). Match app-launcher's pattern: start_period + start_interval keep startup detection fast, 20s steady-state. --- docker-compose.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 48ba853b..8d48591e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,9 +17,11 @@ services: LOCAL_SEPAL_PASSWORD: "${LOCAL_SEPAL_PASSWORD:-}" healthcheck: test: ["CMD", "nc", "-z", "localhost", "8765"] - timeout: 60s - interval: 1s - retries: 60 + start_period: 60s + start_interval: 1s + interval: 20s + timeout: 5s + retries: 3 networks: - sepal restart: always