lab3: LB + 2 API replicas, idempotency, X-Instance-Id, failover/persistence tests (grade 4)

This commit is contained in:
2026-10-09 15:50:44 +03:00
parent 0ab3a341aa
commit eacab162c9
29 changed files with 2490 additions and 18 deletions
+28
View File
@@ -0,0 +1,28 @@
global
log stdout format raw local0
defaults
log global
mode http
option httplog
timeout connect 2s
timeout client 10s
timeout server 10s
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 5s
frontend http_front
bind *:8080
default_backend api_backend
backend api_backend
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready
http-check expect status 200
server-template api 1-10 api:8080 check resolvers docker init-addr libc