Files
mtusi2026lab4-fork/infra/haproxy.cfg
daniil_sobolev 747ca222e5 Implement lab4 attachments on RustFS for grade 4.
Carry over lab3 HA stack and add private S3 storage, Attachment API, orphan compensation/reaper, own tests, and evidence for smoke/persistence/failover.
2026-11-12 20:41:02 +03:00

40 lines
905 B
INI

global
maxconn 4096
log stdout format raw local0
defaults
mode http
log global
option httplog
option http-server-close
timeout connect 3s
# Uploads up to 10 MiB need headroom beyond small JSON APIs.
timeout client 120s
timeout server 120s
timeout http-request 30s
timeout check 2s
retries 2
resolvers docker
nameserver dns1 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold other 5s
hold refused 5s
hold nx 5s
hold timeout 5s
hold valid 5s
hold obsolete 5s
frontend fe_http
bind *:8080
default_backend be_api
backend be_api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
# Dynamic API tasks via Compose DNS; drop failed backends within ~4s (inter 2s * fall 2).
server-template api- 8 api:8080 check resolvers docker init-addr last,libc,none resolve-prefer ipv4 inter 2s fall 2 rise 1