gitea: Increase limits to 1GB and lru caching
This commit is contained in:
@@ -8,18 +8,13 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 150m
|
cpu: 150m
|
||||||
memory: 256Mi
|
memory: 1Gi
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 1Gi
|
||||||
args:
|
args:
|
||||||
- --dbfilename=dump # Static filename prevents disk exhaustion
|
- --dbfilename=dump # Static filename prevents disk exhaustion
|
||||||
- --maxmemory=$(MAX_MEMORY)Mi # Graceful memory management (90% of limit)
|
- --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)
|
- --proactor_threads=1 # Auto-detect CPU cores (optimal threading)
|
||||||
- --cluster_mode=emulated
|
- --cluster_mode=emulated
|
||||||
- --logtostderr
|
- --logtostderr
|
||||||
env:
|
|
||||||
- name: MAX_MEMORY
|
|
||||||
valueFrom:
|
|
||||||
resourceFieldRef:
|
|
||||||
resource: limits.memory
|
|
||||||
divisor: 1Mi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user