From 49d1b7ef8cde51c78deeb098550c46dcf20c7553 Mon Sep 17 00:00:00 2001 From: Jake Low Date: Mon, 6 Jan 2025 12:55:39 -0800 Subject: [PATCH] Increase thread count per gunicorn worker --- helm/osmcha/templates/app.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helm/osmcha/templates/app.yaml b/helm/osmcha/templates/app.yaml index 3cbdea5..7ea9760 100644 --- a/helm/osmcha/templates/app.yaml +++ b/helm/osmcha/templates/app.yaml @@ -30,6 +30,7 @@ spec: containers: - name: osmcha-api image: {{ .Values.app.api.image.repository }}:{{ .Values.app.api.image.tag }} + args: ["gunicorn", "config.wsgi", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--timeout", "120", "--workers", "4", "--threads", "16"] resources: {{- toYaml .Values.app.api.resources | nindent 10 }} env: @@ -71,8 +72,6 @@ spec: value: "False" - name: DJANGO_ENABLE_CHANGESET_COMMENTS value: "True" - - name: WEB_CONCURRENCY - value: "5" ports: - containerPort: 5000 volumeMounts: