Skip to content
Snippets Groups Projects
Verified Commit bae2c6d2 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

template/web: Simplify the gunicorn setup

By default, if nothing is provided, 2 workers, 2 threads and a request timeout of 3600s.
This matches the default installed in the Dockerfile for swh-web.

Refs. swh/infra/sysadm-environment#5110
parent 396a5fbb
No related branches found
No related tags found
1 merge request!303production/web: Align archive instance with previous instance moma
This commit is part of merge request !303. Comments created here will be created in the context of that merge request.
......@@ -163,14 +163,12 @@ spec:
- -c
- /opt/swh/entrypoint.sh
env:
{{ if $web_config.gunicorn -}}
- name: THREADS
value: {{ $web_config.gunicorn.threads | default 5 | quote }}
- name: WORKERS
value: {{ $web_config.gunicorn.workers | default 2 | quote }}
value: {{ dig "gunicorn" "workers" 2 $web_config | quote }}
- name: THREADS
value: {{ dig "gunicorn" "threads" 2 $web_config | quote }}
- name: TIMEOUT
value: {{ $web_config.gunicorn.timeout | default 60 | quote }}
{{ end -}}
value: {{ dig "gunicorn" "timeout" 3600 $web_config | quote }}
- name: STATSD_HOST
value: {{ $.Values.statsdExternalHost | default "prometheus-statsd-exporter" }}
- name: STATSD_PORT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment