docs(gitea): bump postgres stop_grace_period to 120s
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Docker Deploy Test / Fresh-Linux Docker Deploy (push) Waiting to run
CI / Architecture Guardrails (push) Has started running
CI / Typecheck (push) Has started running
CI / Assistant Split Regression (push) Has started running
CI / Build (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Release Image / Build And Push Images (push) Has been cancelled
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Docker Deploy Test / Fresh-Linux Docker Deploy (push) Waiting to run
CI / Architecture Guardrails (push) Has started running
CI / Typecheck (push) Has started running
CI / Assistant Split Regression (push) Has started running
CI / Build (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Release Image / Build And Push Images (push) Has been cancelled
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 <noreply@anthropic.com>
This commit is contained in:
@@ -64,11 +64,13 @@ services:
|
|||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: gitea-db
|
container_name: gitea-db
|
||||||
restart: unless-stopped
|
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
|
# Ohne diesen Grace muss beim nächsten Start Crash-Recovery laufen
|
||||||
# (fsync über alle Files) — auf HDD-backed QNAP-Storage dauert das
|
# (fsync über alle Files) — auf HDD-backed QNAP-Storage dauert das
|
||||||
# schnell 5-10 Minuten und blockt Gitea beim Start.
|
# 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:
|
environment:
|
||||||
- POSTGRES_USER=gitea
|
- POSTGRES_USER=gitea
|
||||||
- POSTGRES_PASSWORD=UGi2VZA7SgYGov
|
- POSTGRES_PASSWORD=UGi2VZA7SgYGov
|
||||||
|
|||||||
Reference in New Issue
Block a user