ЛР 4 — БПИ2303 — Щербаков — на 3

This commit is contained in:
2026-11-13 14:02:00 +03:00
parent ec540a1a72
commit 125a5e6409
39 changed files with 2112 additions and 50 deletions
+42
View File
@@ -0,0 +1,42 @@
global
log stdout format raw local0
maxconn 512
hard-stop-after 5s
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 500ms
timeout client 30s
timeout server 20s
timeout check 1s
retries 1
retry-on conn-failure
option redispatch
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
hold nx 1s
hold timeout 1s
hold refused 1s
hold other 1s
frontend public
bind :8080
default_backend replicas
backend replicas
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
http-check expect status 200
default-server check inter 1s fall 2 rise 1 resolvers docker resolve-prefer ipv4 init-addr libc,none
server api1 api1:8080
server api2 api2:8080