Skip to content

Commit

Permalink
✨ [#148] Update livenessProbe Open Zaak
Browse files Browse the repository at this point in the history
Open Zaak has one long running tasks of which we don't know how long it
will take, so no ping probe was added.

The task: https://github.com/open-zaak/open-zaak/blob/70449f11a31a0e8a06d9e47d49e095b31d1068f6/src/openzaak/components/documenten/tasks.py#L333
  • Loading branch information
SilviaAmAm committed Jan 10, 2025
1 parent 81bd99e commit 6739571
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/openzaak/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openzaak
description: Productiewaardige API's voor Zaakgericht Werken

type: application
version: 1.6.0-beta.3
version: 1.7.0-beta.0
appVersion: latest

dependencies:
Expand Down
12 changes: 7 additions & 5 deletions charts/openzaak/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openzaak

![Version: 1.6.0-beta.1](https://img.shields.io/badge/Version-1.6.0--beta.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.7.0-beta.0](https://img.shields.io/badge/Version-1.7.0--beta.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

Productiewaardige API's voor Zaakgericht Werken

Expand Down Expand Up @@ -226,13 +226,15 @@ Productiewaardige API's voor Zaakgericht Werken
| worker.autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| worker.autoscaling.targetMemoryUtilizationPercentage | int | `80` | |
| worker.concurrency | int | `4` | |
| worker.livenessProbe.exec.command[0] | string | `"python"` | |
| worker.livenessProbe.exec.command[1] | string | `"/app/bin/check_celery_worker_liveness.py"` | |
| worker.livenessProbe.failureThreshold | int | `10` | |
| worker.livenessProbe.enabled | bool | `false` | |
| worker.livenessProbe.exec.command[0] | string | `"/bin/sh"` | |
| worker.livenessProbe.exec.command[1] | string | `"-c"` | |
| worker.livenessProbe.exec.command[2] | string | `"celery --workdir src --app openzaak.celery inspect --destination celery@${HOSTNAME} active"` | |
| worker.livenessProbe.failureThreshold | int | `3` | |
| worker.livenessProbe.initialDelaySeconds | int | `60` | |
| worker.livenessProbe.periodSeconds | int | `50` | |
| worker.livenessProbe.successThreshold | int | `1` | |
| worker.livenessProbe.timeoutSeconds | int | `15` | |
| worker.livenessProbe.timeoutSeconds | int | `10` | |
| worker.maxWorkerLivenessDelta | string | `""` | |
| worker.podLabels | object | `{}` | |
| worker.replicaCount | int | `1` | |
Expand Down
12 changes: 9 additions & 3 deletions charts/openzaak/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,16 @@ spec:
{{- if .Values.extraEnvVars }}
{{- include "openzaak.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.worker.livenessProbe }}
{{- if .Values.worker.livenessProbe.enabled }}
livenessProbe:
{{- toYaml .Values.worker.livenessProbe | nindent 12 }}
{{- end }}
exec:
{{- toYaml .Values.worker.livenessProbe.exec | nindent 14 }}
initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.worker.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.worker.livenessProbe.failureThreshold }}
{{- end }}
resources:
{{- toYaml .Values.worker.resources | nindent 12 }}
command:
Expand Down
10 changes: 6 additions & 4 deletions charts/openzaak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,17 @@ worker:
resources: {}
maxWorkerLivenessDelta: ""
livenessProbe:
enabled: false
exec:
command:
- python
- /app/bin/check_celery_worker_liveness.py
- /bin/sh
- -c
- celery --workdir src --app openzaak.celery inspect --destination celery@${HOSTNAME} active
initialDelaySeconds: 60
# Periodeseconds should not exceed maxWorkerLivenessDelta
periodSeconds: 50
timeoutSeconds: 15
failureThreshold: 10
timeoutSeconds: 10
failureThreshold: 3
successThreshold: 1
autoscaling:
enabled: false
Expand Down

0 comments on commit 6739571

Please sign in to comment.