From ef277d18a737a03debb5360e1c8a437910a74011 Mon Sep 17 00:00:00 2001 From: FoggyMtnDrifter Date: Tue, 24 Nov 2026 17:32:36 -0500 Subject: [PATCH] Give Etherpad time to start before it is marked unhealthy (#43) The image's own health check allows three failed checks from the first second. Etherpad needs 15-40 seconds on its share of CPU, so deploys failed with "app-1 is unhealthy". Add a health check with a 90 second start period and more retries (c3). --- apps/etherpad/template.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/etherpad/template.yml b/apps/etherpad/template.yml index 707c4d8..44cf0da 100644 --- a/apps/etherpad/template.yml +++ b/apps/etherpad/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: etherpad name: Etherpad description: Real-time collaborative text editor. - version: "3.3.21-c2" + version: "3.3.21-c3" primary: { service: app, port: 9001 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -51,6 +51,15 @@ services: volumes: - var:/opt/etherpad-lite/var - plugins:/opt/etherpad-lite/src/plugin_packages + # The image's own check, with room to start. Etherpad takes 15-40 seconds + # to come up on a small share of CPU, and the image allows only three + # failed checks from the first second, so deploys were marked unhealthy. + healthcheck: + test: [ "CMD-SHELL", "wget -qO- http://127.0.0.1:9001/health | grep -E 'pass|ok|up' > /dev/null || exit 1" ] + interval: 10s + timeout: 5s + start_period: 90s + retries: 6 db: image: postgres:18.7-alpine