Skip to content

Commit

Permalink
✨ [#148] Update livenessProbe Open Inwoner
Browse files Browse the repository at this point in the history
OIP has a hard task limit of 15 min, so no ping probe was added
  • Loading branch information
SilviaAmAm committed Jan 10, 2025
1 parent 1edf9c8 commit aceb032
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/openinwoner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openinwoner
description: Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijker te maken voor inwoners.

type: application
version: 1.6.0-beta.3
version: 1.7.0-beta.0
appVersion: latest
icon: https://docs.openinwoner.nl/en/latest/_static/logo.png

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

![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)

Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijker te maken voor inwoners.

Expand Down Expand Up @@ -192,13 +192,15 @@ Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijk
| 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 open_inwoner.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 | `5` | |
| worker.livenessProbe.timeoutSeconds | int | `10` | |
| worker.maxWorkerLivenessDelta | string | `""` | |
| worker.podLabels | object | `{}` | |
| worker.replicaCount | int | `1` | |
Expand Down
12 changes: 9 additions & 3 deletions charts/openinwoner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,16 @@ spec:
{{- if .Values.extraEnvVars }}
{{- include "openinwoner.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/openinwoner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,17 @@ worker:
# Defaults to 60s
maxWorkerLivenessDelta: ""
livenessProbe:
enabled: false
exec:
command:
- python
- /app/bin/check_celery_worker_liveness.py
- /bin/sh
- -c
- celery --workdir src --app open_inwoner.celery inspect --destination celery@${HOSTNAME} active
initialDelaySeconds: 60
# Periodeseconds should not exceed maxWorkerLivenessDelta
periodSeconds: 50
timeoutSeconds: 5
failureThreshold: 10
timeoutSeconds: 10
failureThreshold: 3
successThreshold: 1
autoscaling:
enabled: false
Expand Down

0 comments on commit aceb032

Please sign in to comment.