feat(infra): add replicated API and readiness-aware load balancing

Provide resource profiles, persistent storage, parallel Nginx health checks and graceful restart hooks.
This commit is contained in:
2026-10-29 11:46:56 +03:00
parent 24f32c3fbe
commit 676b38c18b
18 changed files with 394 additions and 27 deletions
+23
View File
@@ -0,0 +1,23 @@
events {}
http {
upstream api {
least_conn;
zone api 64k;
include /etc/nginx/ready-upstreams.conf;
}
server {
listen 80;
location / {
proxy_pass http://api;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 2s;
proxy_read_timeout 30s;
}
}
}