Implement lab 3 replica failover and shared idempotency for grade 4

This commit is contained in:
Алиса Шурман
2026-11-12 22:04:38 +03:00
parent 0ab3a341aa
commit 7da034885f
25 changed files with 1228 additions and 23 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 15s
timeout server 10s
timeout check 1s
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
server-template replica 10 api:8080 check inter 1s fall 2 rise 1 resolvers docker init-addr libc,none