feat: API replicas over HAProxy (3)

This commit is contained in:
2026-11-06 03:26:54 +03:00
parent de2f63b926
commit ec111aadfb
32 changed files with 396 additions and 147 deletions
+28
View File
@@ -0,0 +1,28 @@
global
log stdout format raw local0 info
defaults
mode http
log global
option httplog
timeout connect 2s
timeout client 30s
timeout server 20s
timeout http-request 10s
retries 3
option redispatch
resolvers dns
parse-resolv-conf
hold valid 1s
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
default-server check inter 1s fall 2 rise 2 resolvers dns init-addr none
server-template api 4 api:8080