gitea: Increase limits to 1GB and lru caching

This commit is contained in:
2026-06-06 15:36:18 +02:00
parent dd0cad06ca
commit dc0b889f3a
+5 -10
View File
@@ -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