From 8f3d824ea6e4573472206af6ff3ef0a8fcac0754 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 28 Apr 2026 18:26:52 -0600 Subject: [PATCH] fix: reduce healthcheck frequency to lower memory pressure Closes #3909 The previous 10s interval triggered a DB query (SELECT 1) 360 times/hour, keeping Node.js heap under constant pressure and preventing the GC from reclaiming memory efficiently. Increasing to 30s reduces query load by 3x. Also adds start-period=60s to avoid false failures during startup. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ed936508f..4cab0e8f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,7 +66,7 @@ COPY --from=buildpacksio/pack:0.39.1 /usr/local/bin/pack /usr/local/bin/pack EXPOSE 3000 -HEALTHCHECK --interval=10s --timeout=3s --retries=10 \ +HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=5 \ CMD curl -fs http://localhost:3000/api/trpc/settings.health || exit 1 CMD ["sh", "-c", "pnpm run wait-for-postgres && exec pnpm start"]