1
0
Fork 0
forked from infra/ansible

proxies-reverseproxy: set keepalive=on ttl=10 for koji

This fixes intermittent 502 Bad Gateway errors during long-running
koji connections (like watch-task or watch-logs).

For more details on proxy keepalive and ttl, see:
https://httpd.apache.org/docs/2.4/mod/mod_proxy.html

Fixes #12913

Signed-off-by: Victor Koycheff <victorkoycheff@gmail.com>
This commit is contained in:
Victor Koychev 2026-02-25 19:22:36 +02:00 committed by Kevin Fenzi
commit 35a1b3223b

View file

@ -13,7 +13,7 @@
- import_tasks: "{{ handlers_path }}/restart_services.yml"
vars:
- varnish_url: http://localhost:6081
varnish_url: http://localhost:6081
pre_tasks:
@ -661,6 +661,7 @@
website: koji.fedoraproject.org
destname: koji
keephost: true
proxyopts: "keepalive=on ttl=10"
balancer_name: koji
balancer_members:
- "koji01.{{ datacenter }}.fedoraproject.org"
@ -674,6 +675,7 @@
website: koji.fedoraproject.org
destname: koji
keephost: true
proxyopts: "keepalive=on ttl=10"
balancer_name: koji
balancer_members:
- "koji01.stg.{{ datacenter }}.fedoraproject.org"