Выполнить лабораторную 3: балансировка, отказы и исследование масштабирования

This commit is contained in:
wpyatzy
2026-10-30 20:42:40 +03:00
parent 0ab3a341aa
commit 62de9484fe
112 changed files with 1187581 additions and 55 deletions
+31
View File
@@ -0,0 +1,31 @@
global
log stdout format raw local0
maxconn 512
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 2
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
frontend public
bind :8080
default_backend replicas
backend replicas
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-template api 8 api:8080 check