haproxy: set keepalive mode for kojipkgs

We are hitting a sporadic and anoying 502 error with ostree pulls.
see https://pagure.io/releng/issue/11439

The problem seems to be between haproxy and varnish on kojipkgs01.

We set the httpclose option in haproxy globally, which closes
connections as soon as it thinks they are done.
Setting this option 'httpkeepalive' will keep connections alive
and handle the case of lots of fast connections downloading small
objects much better.

Sadly, we don't have a way to test this in staging, so we would need to
test in prod and roll back if there's problems.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-03-15 11:57:46 -07:00
parent 08204451a8
commit fa729a6210

View file

@ -351,8 +351,10 @@ backend ipa01-backend
frontend kojipkgs-frontend
bind 0.0.0.0:10062
default_backend kojipkgs-backend
option http-keep-alive
backend kojipkgs-backend
option http-keep-alive
balance uri
server kojipkgs01.{{ datacenter }}.fedoraproject.org kojipkgs01.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2
server kojipkgs02.{{ datacenter }}.fedoraproject.org kojipkgs02.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2