Keep Paperless OCR alive during storage stalls
This commit is contained in:
1 parent
efc7598613
commit
90d3d23830
1 file changed
+12
-4
@@ -112,10 +112,18 @@ spec:
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet: {path: /, port: http}
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 6
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- |
|
||||
for service in svc-worker svc-webserver svc-consumer svc-scheduler; do
|
||||
pid="$(s6-svstat -o pid "/run/service/$service")"
|
||||
[ "$pid" -gt 0 ]
|
||||
done
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 30
|
||||
failureThreshold: 30
|
||||
resources:
|
||||
requests: {cpu: 100m, memory: 1Gi}
|
||||
volumes:
|
||||
|
||||
Reference in new issue
Block a user