From 116987403f154266f17c8eb604b8b3b603cf31cb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 16 Sep 2020 14:49:28 +0200 Subject: [PATCH] bodhi: attempt to bump the timeout from 30s to 180s Both openshift and gunicorn have a timeout. We're ran in the past in situations where bodhi was a little slow to answer and thus either gunicorn or openshift were returning a 504 error. With this commit, we hope to increase both timeout values and thus give bodhi a little more time to answer. Hopefully this will help fixing: https://pagure.io/fedora-infrastructure/issue/9320 Signed-off-by: Pierre-Yves Chibon --- playbooks/openshift-apps/bodhi.yml | 1 + roles/openshift-apps/bodhi/templates/deploymentconfig.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/openshift-apps/bodhi.yml b/playbooks/openshift-apps/bodhi.yml index 0dddc9d95b..7573628158 100644 --- a/playbooks/openshift-apps/bodhi.yml +++ b/playbooks/openshift-apps/bodhi.yml @@ -112,6 +112,7 @@ host: "bodhi{{ env_suffix }}.fedoraproject.org" serviceport: web servicename: bodhi-web + annotations: "haproxy.router.openshift.io/timeout: 180s" - role: openshift/object app: bodhi template: deploymentconfig.yml diff --git a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml index 4c92a52a7f..244e425ec6 100644 --- a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml +++ b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml @@ -59,7 +59,7 @@ items: - name: bodhi-web image: bodhi-base:latest command: ["gunicorn"] - args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "60"] + args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180"] ports: - containerPort: 8080 resources: {}