Реализация ЛР 3 на оценку 3: HAProxy, 2 реплики API, идемпотентность, evidence

This commit is contained in:
2026-11-10 01:26:52 +03:00
parent 0ab3a341aa
commit de55dd1d8a
29 changed files with 2032 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
global
log stdout format raw local0
defaults
mode http
log global
option httplog
timeout connect 1s
timeout client 30s
timeout server 10s
retries 3
option redispatch
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold other 1s
hold nx 1s
hold timeout 1s
accepted_payload_size 8192
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready
http-check expect status 200
default-server check inter 1s fall 2 rise 2 resolvers docker init-addr none
server-template api 1-8 api:8080