lab3: complete lab with scaling track 1 and failover evidence

This commit is contained in:
2026-11-09 13:19:21 +03:00
parent 0ab3a341aa
commit 631a852746
13 changed files with 690 additions and 24 deletions
+19
View File
@@ -0,0 +1,19 @@
events { worker_connections 1024; }
http {
upstream api_backend {
server api:8080 max_fails=3 fail_timeout=5s;
}
server {
listen 8080;
location / {
proxy_pass http://api_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_connect_timeout 2s;
proxy_read_timeout 5s;
}
}
}