Compare commits

...

2 commits

Author SHA1 Message Date
cd59b81cfc
httpd/koji: set MaxKeepAliveRequests 0 to fix 502 race condition
This acts as the second half of the fix for the 502 Bad Gateway errors
on long-running koji connections.

Fixes #12913

Signed-off-by: Victor Koycheff <victorkoycheff@gmail.com>
2026-03-12 09:39:24 +02:00
947cfd0b2c
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>
2026-02-26 09:46:04 +02:00
4 changed files with 6 additions and 3 deletions

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"

View file

@ -87,7 +87,7 @@ KeepAlive On
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 500
MaxKeepAliveRequests 0
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the

View file

@ -3,6 +3,7 @@
#
KeepAlive On
MaxKeepAliveRequests 0
Alias /kojihub /usr/share/koji-hub/kojiapp.py

View file

@ -2,7 +2,7 @@ RewriteEngine On
RewriteRule ^/$ /koji/ [R,L]
KeepAlive On
KeepAliveTimeout 16
MaxKeepAliveRequests 500
MaxKeepAliveRequests 0
ServerLimit 2000
MaxRequestWorkers 2000