bodhi: switch prod to asynch gunicorn workers

Signed-off-by: Mattia Verga <mattia.verga@proton.me>
This commit is contained in:
Mattia Verga 2022-06-02 11:22:27 +02:00 committed by kevin
parent 1105c72692
commit b38a69f95f

View file

@ -44,11 +44,7 @@ items:
- name: bodhi-web
image: bodhi-base:latest
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=-"]
{% endif %}
ports:
- containerPort: 8080
{% if env == "staging" %}