fix(postgres): remove memory limit and add document database #259

Merged
argoyle merged 1 commits from fix-postgres-oom into main 2026-04-18 16:34:19 +00:00
Owner

Summary

  • Remove the 600Mi memory limit on the local Postgres Deployment. With shared_buffers=384MB + max_connections=300 the pod was being repeatedly OOMKilled under real workloads, leaving clients with intermittent connect: connection refused. Keep the 400Mi request for scheduling.
  • Add document to the seeded database list in initdb.sh.

Test plan

  • kubectl --context kind-unbound apply -f k8s/infra/postgres.yaml — rollout succeeds
  • Postgres pod stable (0 restarts) after apply
  • On a fresh cluster (./setup), verify the document database is created (requires empty data/postgres/)
## Summary - Remove the 600Mi memory limit on the local Postgres Deployment. With `shared_buffers=384MB` + `max_connections=300` the pod was being repeatedly OOMKilled under real workloads, leaving clients with intermittent `connect: connection refused`. Keep the 400Mi request for scheduling. - Add `document` to the seeded database list in `initdb.sh`. ## Test plan - [x] `kubectl --context kind-unbound apply -f k8s/infra/postgres.yaml` — rollout succeeds - [x] Postgres pod stable (0 restarts) after apply - [ ] On a fresh cluster (`./setup`), verify the `document` database is created (requires empty `data/postgres/`)
argoyle added 1 commit 2026-04-18 16:33:54 +00:00
Postgres was OOMKilled repeatedly with the 600Mi limit given
shared_buffers=384MB + max_connections=300. Drop the limit entirely
for the local dev cluster (keep the 400Mi request for scheduling).

Also seed a 'document' database in initdb.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
argoyle merged commit 73ccafab68 into main 2026-04-18 16:34:19 +00:00
argoyle deleted branch fix-postgres-oom 2026-04-18 16:34:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/local-k8s#259