Files
mtusi2026lab4/infra/haproxy.cfg
T

23 lines
451 B
INI

global
maxconn 256
defaults
mode http
timeout connect 2s
timeout client 120s
timeout server 120s
option http-server-close
frontend messenger
bind *:8080
default_backend api
backend api
balance roundrobin
option httpchk
http-check send meth GET uri /health/live
http-check expect status 200
default-server inter 1s fall 2 rise 1
server api-1 api-1:8080 check
server api-2 api-2:8080 check