Files
mtusi2026lab4/infra/haproxy.cfg
T

25 lines
475 B
INI

global
log stdout format raw local0
maxconn 4096
defaults
mode http
log global
option httplog
timeout connect 5s
timeout client 30s
timeout server 30s
retries 2
frontend http_front
bind *:8080
default_backend api_back
backend api_back
balance roundrobin
option httpchk GET /health
http-check expect status 200
default-server inter 3s fall 3 rise 2
server api1 api1:8080 check
server api2 api2:8080 check