Skip to content

Commit

Permalink
Merge pull request #46 from Signalen/feat/configurable-celery-loglevel
Browse files Browse the repository at this point in the history
Make Celery loglevel configurable
  • Loading branch information
bartjkdp authored Oct 31, 2022
2 parents d00a703 + 1a78eab commit a82364d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: backend
description: The API for the Signals application
type: application
version: 4.4.0
version: 4.4.1
appVersion: 2.7.2

dependencies:
Expand Down
1 change: 1 addition & 0 deletions charts/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The backend Helm chart installs the Signalen API and the by default the followin
| `uwsgi.processes` | The number of uWSGI processes | `4` |
| `uwsgi.threads` | The number of uWSGI threads | `2` |
| `celery.concurrency` | The number of Celery concurrent child processes | `2` |
| `celery.loglevel` | The loglevel of Celery | `WARNING` |
| `persistence.media.enabled` | Enable persistence of media | `true` |
| `persistence.media.enabledOnWorker` | Enable persistence of media on worker | `false` |
| `persistence.media.size` | Specify the size of the media PVC | `1Gi` |
Expand Down
2 changes: 1 addition & 1 deletion charts/backend/templates/deployment-celery-beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
args:
- '--app=signals'
- 'beat'
- '--loglevel=WARNING'
- '--loglevel={{ .Values.celery.loglevel }}'
- '--pidfile=/tmp/celerybeat.pid'
env:
{{- range $key, $value := .Values.env }}
Expand Down
2 changes: 1 addition & 1 deletion charts/backend/templates/deployment-celery-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
args:
- '--app=signals'
- 'worker'
- '--loglevel=WARNING'
- '--loglevel={{ .Values.celery.loglevel }}'
- '--concurrency={{ .Values.celery.concurrency }}'
env:
{{- range $key, $value := .Values.env }}
Expand Down
1 change: 1 addition & 0 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ uwsgi:
threads: 2

celery:
loglevel: WARNING
concurrency: 2

deploymentStrategy: RollingUpdate
Expand Down
2 changes: 1 addition & 1 deletion charts/classification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: classification
description: Machine learning prediction API
type: application
version: 4.4.0
version: 4.4.1
appVersion: 47000c5f9b9a21aec846f3de53108d5df25acd28
2 changes: 1 addition & 1 deletion charts/frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: frontend
description: The web frontend for the Signals application
type: application
version: 4.4.0
version: 4.4.1
appVersion: v2.8.1

0 comments on commit a82364d

Please sign in to comment.