From 8e77d702baea7c43d86a2fda230af0548b544204 Mon Sep 17 00:00:00 2001 From: sHa Date: Wed, 10 Jun 2026 13:25:36 +0300 Subject: [PATCH] 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 --- rflood/Chart.yaml | 2 +- rflood/templates/deployment.yaml | 9 +++++++++ rflood/values.yaml | 14 +++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/rflood/Chart.yaml b/rflood/Chart.yaml index fd87f59..028aafc 100644 --- a/rflood/Chart.yaml +++ b/rflood/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: rflood description: rTorrent + Flood (hotio/rflood) Helm chart type: application -version: 0.1.7 +version: 0.1.8 appVersion: "release-0.16.12" annotations: version-source: ghcr-tags:hotio/rflood:^release-[0-9]+\.[0-9]+\.[0-9]+$ diff --git a/rflood/templates/deployment.yaml b/rflood/templates/deployment.yaml index 94be967..eec0374 100644 --- a/rflood/templates/deployment.yaml +++ b/rflood/templates/deployment.yaml @@ -55,6 +55,15 @@ spec: protocol: UDP resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.livenessProbe.enabled }} + livenessProbe: + exec: + {{- toYaml .Values.livenessProbe.exec | nindent 14 }} + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} volumeMounts: - name: config mountPath: /config diff --git a/rflood/values.yaml b/rflood/values.yaml index 4fbd395..09afb90 100644 --- a/rflood/values.yaml +++ b/rflood/values.yaml @@ -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: