ЛР 3: балансировка API, общие сессии и идемпотентность

This commit is contained in:
2026-11-12 16:06:08 +03:00
parent 0ab3a341aa
commit 0228556603
20 changed files with 778 additions and 67 deletions
+26
View File
@@ -0,0 +1,26 @@
global
log stdout format raw local0
maxconn 256
defaults
log global
mode http
timeout connect 1s
timeout client 30s
timeout server 30s
retries 2
option redispatch
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 2s
frontend public
bind *:8080
default_backend apis
backend apis
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
server api1 api1:8000 check inter 1s fall 2 rise 1 resolvers docker init-addr libc,none
server api2 api2:8000 check inter 1s fall 2 rise 1 resolvers docker init-addr libc,none