gitea: Increase limits to 1GB and lru caching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user