21 lines
590 B
YAML
21 lines
590 B
YAML
apiVersion: dragonflydb.io/v1alpha1
|
|
kind: Dragonfly
|
|
metadata:
|
|
name: dragonfly-gitea
|
|
namespace: gitea
|
|
spec:
|
|
replicas: 1
|
|
resources:
|
|
requests:
|
|
cpu: 150m
|
|
memory: 1Gi
|
|
limits:
|
|
memory: 1Gi
|
|
args:
|
|
- --dbfilename=dump # Static filename prevents disk exhaustion
|
|
- --maxmemory=920Mi # ~90% of the 1Gi limit, leaving headroom
|
|
- --cache_mode=true # evict near maxmemory instead of rejecting writes (graceful degradation)
|
|
- --proactor_threads=1 # Auto-detect CPU cores (optimal threading)
|
|
- --cluster_mode=emulated
|
|
- --logtostderr
|