authentik: worker replicas 3 -> 2

Workers handle background tasks only (LDAP sync, email, certificate
renewal) — no user-facing traffic, so 2-of-3 redundancy isn't load-
bearing. Reduces sustained CPU by ~100m.

Server replicas unchanged at 3 (PDB minAvailable=2 — user-facing).
PgBouncer pool unchanged at 3 (DB connection pooling).
This commit is contained in:
Viktor Barzin 2026-05-21 09:14:35 +00:00
parent 701b73bf53
commit 899c7adaa0

View file

@ -78,7 +78,10 @@ global:
addPrometheusAnnotations: true
worker:
replicas: 3
# 2 replicas: workers handle background tasks (LDAP sync, email,
# certificate renewal) — no user-facing traffic, so 2-of-3 isn't
# needed for availability. Drop saves ~100m sustained CPU.
replicas: 2
# Same unauthenticated_age cap as server — both the server (Django session
# middleware) and worker (cleanup tasks) need to see the value.
env: