bodhi: switch stg to asynch gunicorn workers

Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
This commit is contained in:
Mattia Verga 2022-01-23 17:29:24 +01:00
parent 903df7e9e9
commit 9bbd59aafb

View file

@ -48,7 +48,11 @@ items:
- name: bodhi-web - name: bodhi-web
image: bodhi-base:latest image: bodhi-base:latest
command: ["gunicorn"] command: ["gunicorn"]
{% if env == "staging" %}
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-k", "gthread", "--threads", "2", "--preload", "--log-file=-"]
{% else %}
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"] args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"]
{% endif %}
ports: ports:
- containerPort: 8080 - containerPort: 8080
{% if env == "staging" %} {% if env == "staging" %}