Discourse: give the postgres18 health checks 5 s instead of 1 s #45

Open
claude wants to merge 1 commits from discourse-postgres-probe-timeout into main
Member

This adds timeoutSeconds: 5 to the readiness and liveness probes in files/discourse/postgres18.yaml.

Why: on 2026-11-18, Discourse was down for about two hours. Its database shares alpha-worker-3 (1 vCPU) with Gitea, and crawlers were hammering Gitea. Under that load pg_isready missed the default 1-second timeout, and the kubelet restarted a healthy database about 40 times. The other half of the fix is in DevOps/ansible-role-gitea (robots.txt).

Live state: the live StatefulSet was already patched the same way, with Eric's approval. kubectl diff -f files/discourse/postgres18.yaml against the cluster shows no difference, so re-running the role changes nothing.

🤖 Generated with Claude Code

This adds `timeoutSeconds: 5` to the readiness and liveness probes in `files/discourse/postgres18.yaml`. **Why:** on 2026-11-18, Discourse was down for about two hours. Its database shares `alpha-worker-3` (1 vCPU) with Gitea, and crawlers were hammering Gitea. Under that load `pg_isready` missed the default 1-second timeout, and the kubelet restarted a healthy database about 40 times. The other half of the fix is in DevOps/ansible-role-gitea (robots.txt). **Live state:** the live StatefulSet was already patched the same way, with Eric's approval. `kubectl diff -f files/discourse/postgres18.yaml` against the cluster shows no difference, so re-running the role changes nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-11-19 02:14:12 +00:00
On 2026-11-18 crawler load on Gitea, which shares alpha-worker-3 (1 vCPU), made pg_isready miss the 1 s default, and the kubelet restarted a healthy database about 40 times, taking Discourse down. Matches the live StatefulSet, which was patched the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin discourse-postgres-probe-timeout:discourse-postgres-probe-timeout
git checkout discourse-postgres-probe-timeout
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DevOps/ansible-role-eom#45