From 5fd650460ece073b3f87fe28896fde47f70b2a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Sun, 12 Apr 2026 14:35:14 +0200 Subject: [PATCH] docs(gitea): bump postgres stop_grace_period to 120s 60s was not enough when the DB has active WAL writes from recent CI runs. 120s gives postgres the headroom for a clean shutdown and avoids the slow crash-recovery fsync on the next start. Co-Authored-By: Claude Opus 4.6 --- .gitea/gitea_compose_qnap_all_in_one.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/gitea_compose_qnap_all_in_one.md b/.gitea/gitea_compose_qnap_all_in_one.md index f2d33b5..2d7da09 100644 --- a/.gitea/gitea_compose_qnap_all_in_one.md +++ b/.gitea/gitea_compose_qnap_all_in_one.md @@ -64,11 +64,13 @@ services: image: postgres:16-alpine container_name: gitea-db restart: unless-stopped - # Geben wir Postgres Zeit für sauberen Shutdown beim Stop/Replace. + # Geben wir Postgres großzügig Zeit für sauberen Shutdown beim Stop/Replace. # Ohne diesen Grace muss beim nächsten Start Crash-Recovery laufen # (fsync über alle Files) — auf HDD-backed QNAP-Storage dauert das # schnell 5-10 Minuten und blockt Gitea beim Start. - stop_grace_period: 60s + # 120s ist bewusst großzügig: bei viel WAL-Write (CI-Läufe mit Artefakten) + # kann auch ein sauberer Shutdown 30-60s dauern. + stop_grace_period: 120s environment: - POSTGRES_USER=gitea - POSTGRES_PASSWORD=UGi2VZA7SgYGov