diff --git a/values/gitea/manifests/dragonfly.yaml b/values/gitea/manifests/dragonfly.yaml index 516f0ef3..8c809aee 100644 --- a/values/gitea/manifests/dragonfly.yaml +++ b/values/gitea/manifests/dragonfly.yaml @@ -8,18 +8,13 @@ spec: resources: requests: cpu: 150m - memory: 256Mi + memory: 1Gi limits: - memory: 256Mi + memory: 1Gi args: - - --dbfilename=dump # Static filename prevents disk exhaustion - - --maxmemory=$(MAX_MEMORY)Mi # Graceful memory management (90% of limit) + - --dbfilename=dump # Static filename prevents disk exhaustion + - --maxmemory=920Mi # ~90% of the 1Gi limit, leaving headroom + - --maxmemory-policy=volatile-lru # evict only TTL'd keys (cache/session); protect queue - --proactor_threads=1 # Auto-detect CPU cores (optimal threading) - --cluster_mode=emulated - --logtostderr - env: - - name: MAX_MEMORY - valueFrom: - resourceFieldRef: - resource: limits.memory - divisor: 1Mi