From dc0b889f3a0308b62f02d3c130d7415e541db6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20J=C3=B6rg?= Date: Sat, 6 Jun 2026 15:36:18 +0200 Subject: [PATCH] gitea: Increase limits to 1GB and lru caching --- values/gitea/manifests/dragonfly.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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