Raise authentik postgres CPU, memory and buffer sizing #474

Merged
benvin merged 2 commits from benvin/authentik-cnpg-resources into main 2026-09-19 14:35:17 +10:00

2 Commits

Author SHA1 Message Date
unkin-agent e4856d24a4 Raise authentik postgres CPU, memory and buffer sizing
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
The 500m CPU limit is a 50ms CFS quota per 100ms period, so the pods
throttle on every burst even at idle and each query pays the latency.
128MB shared_buffers and a 256MB cache estimate also under-serve the
planner on the polymorphic joins authentik issues.

- raise resources to requests 500m/1Gi, limits 2/2Gi
- raise shared_buffers to 512MB and effective_cache_size to 1536MB
- keep the post-incident memory headroom multiple over shared_buffers
2026-09-19 13:57:06 +10:00
unkin-agent 7d186a9b36 Enable hot_standby_feedback on the authentik postgres cluster
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
Slow authentik reads served by a hot standby exhaust
max_standby_streaming_delay and are cancelled with "conflict with
recovery", surfacing as HTTP 500s.

- set hot_standby_feedback on (SIGHUP reload, no restart)
2026-09-19 13:56:00 +10:00