fix(rflood): add liveness probe and raise memory limit to 4Gi

rtorrent periodically freezes blocking Flood's XMLRPC calls (activity-stream
and client/settings hang). Root causes: pieces.memory.max=1800M near the 2Gi
container limit; no liveness probe to trigger pod restart on hang.

- Liveness probe: exec rtxmlrpc system.time_seconds with 10s timeout; restart
  pod after 3 consecutive failures (every 30s check)
- Default memory limit raised from 2Gi to 4Gi

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sha
2026-06-10 13:25:46 +03:00
co-authored by Claude Sonnet 4.6
parent 7da0adffdb
commit 8e77d702ba
3 changed files with 23 additions and 2 deletions
+13 -1
View File
@@ -29,7 +29,19 @@ resources:
memory: "256Mi"
limits:
cpu: "2"
memory: "2Gi"
memory: "4Gi"
livenessProbe:
enabled: true
exec:
command:
- /bin/sh
- -c
- "timeout 10 rtxmlrpc system.time_seconds > /dev/null 2>&1"
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 15
failureThreshold: 3
persistence:
config: