Реализовать лабораторную 3

This commit is contained in:
Krep4334
2026-11-13 18:22:52 +03:00
parent 0ab3a341aa
commit 2a4242695f
23 changed files with 1121 additions and 40 deletions
+34
View File
@@ -0,0 +1,34 @@
global
log stdout format raw local0
defaults
mode http
log global
option httplog
option http-server-close
timeout connect 1s
timeout client 15s
timeout server 12s
timeout http-request 8s
timeout check 1s
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 2
timeout resolve 500ms
timeout retry 500ms
hold valid 1s
hold nx 1s
frontend messenger
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 1 resolvers docker resolve-prefer ipv4 init-addr libc,none
server api-a api-a:8080
server api-b api-b:8080