Tuned authentik worker
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
# Authentik Helm Chart Custom Values - SHARED POSTGRESQL VERSION
|
||||
# For dooplex homelab deployment with centralized PostgreSQL
|
||||
# Version: 2025.12.3
|
||||
#
|
||||
# ============================================================================
|
||||
# 2026-04 tuning for worker task pile-up (issue #18368):
|
||||
# - THREADS 2 -> 4: doubles concurrent task slots per worker (4 -> 8)
|
||||
# - TASK_EXPIRATION 30d -> 3d: reduces task table bloat & cleanup load
|
||||
# - worker resources: guaranteed 500m CPU instead of burst-only 100m
|
||||
# Applies to workload of ~15 outposts; revisit if outpost count grows.
|
||||
# ============================================================================
|
||||
|
||||
global:
|
||||
image:
|
||||
@@ -134,12 +142,26 @@ worker:
|
||||
name: worker
|
||||
replicas: 1
|
||||
|
||||
# Resource limits
|
||||
# Tuning for issue #18368 (task pile-up on 2025.10+ due to Postgres broker).
|
||||
# These env vars are worker-only; don't promote to global.env.
|
||||
env:
|
||||
# 2 (default) -> 4. Slots = replicas × PROCESSES × THREADS.
|
||||
# 1 × 2 × 4 = 8 concurrent tasks. Docs: below 2 not recommended.
|
||||
- name: AUTHENTIK_WORKER__THREADS
|
||||
value: "4"
|
||||
# 30d (default) -> 3d. Shrinks authentik_tasks_tasks table, making
|
||||
# daily purge cheaper and reducing the dequeue cost per task.
|
||||
- name: AUTHENTIK_WORKER__TASK_EXPIRATION
|
||||
value: "days=3"
|
||||
|
||||
# Resource limits - bumped from 100m/1Gi for worker throughput.
|
||||
# A single send_update burst from 15 outposts can saturate the old budget.
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 1Gi
|
||||
|
||||
# Persistent volume for media files (shared with server)
|
||||
|
||||
Reference in New Issue
Block a user