Skip to content

Commit

Permalink
Increase thread count per gunicorn worker (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low authored Jan 6, 2025
1 parent 7590445 commit 787f5b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helm/osmcha/templates/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -71,8 +72,6 @@ spec:
value: "False"
- name: DJANGO_ENABLE_CHANGESET_COMMENTS
value: "True"
- name: WEB_CONCURRENCY
value: "5"
ports:
- containerPort: 5000
volumeMounts:
Expand Down

0 comments on commit 787f5b8

Please sign in to comment.