Implement lab 3 replicated API and transactional idempotency

This commit is contained in:
2026-11-19 11:33:31 +03:00
parent 0ab3a341aa
commit 1450f6ab69
31 changed files with 1170 additions and 31 deletions
+27
View File
@@ -0,0 +1,27 @@
global
maxconn 512
defaults
mode http
timeout connect 1s
timeout client 30s
timeout server 30s
timeout check 1s
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 2
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
hold nx 1s
frontend ingress
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
default-server inter 1s fall 2 rise 1 resolvers docker init-addr libc,none
server api1 api1:8080 check
server api2 api2:8080 check