Files
mtusi2026lab4-fork/infra/haproxy.cfg
T

22 lines
495 B
INI

global
log stdout format raw local0
maxconn 128
defaults
mode http
log global
timeout connect 2s
timeout client 40s
timeout server 40s
timeout http-request 10s
timeout queue 3s
frontend http
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
retries 0
server api1 api1:8080 check inter 1s fall 2 rise 1
server api2 api2:8080 check inter 1s fall 2 rise 1