Balance stateless replicas with shared idempotency and measured failover scaling

This commit is contained in:
2026-10-16 16:02:33 +03:00
parent 0ab3a341aa
commit 4cb20cc68f
155 changed files with 77900 additions and 38 deletions
+30
View File
@@ -0,0 +1,30 @@
global
log stdout format raw local0
maxconn 256
defaults
mode http
log global
timeout connect 1s
timeout client 15s
timeout server 10s
timeout check 1s
timeout queue 2s
retries 0
option http-server-close
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
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
server-template replica 1-4 api:8080 check inter 500ms fall 2 rise 1 resolvers docker resolve-prefer ipv4 init-addr none maxconn 32