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
+8
View File
@@ -0,0 +1,8 @@
services:
api:
environment:
DB_POOL_MAX: '8'
deploy:
replicas: 4
cpus: '1.0'
mem_limit: 512m
+8
View File
@@ -0,0 +1,8 @@
services:
api:
environment:
DB_POOL_MAX: '8'
deploy:
replicas: 4
cpus: '0.25'
mem_limit: 256m
+8
View File
@@ -0,0 +1,8 @@
services:
api:
environment:
DB_POOL_MAX: '8'
deploy:
replicas: 4
cpus: '0.5'
mem_limit: 256m
+6
View File
@@ -0,0 +1,6 @@
services:
api:
deploy:
replicas: 1
cpus: '1.0'
mem_limit: 1024m
+6
View File
@@ -0,0 +1,6 @@
services:
api:
deploy:
replicas: 1
cpus: '2.0'
mem_limit: 1024m
+6
View File
@@ -0,0 +1,6 @@
services:
api:
deploy:
replicas: 2
cpus: '0.5'
mem_limit: 512m
+6
View File
@@ -0,0 +1,6 @@
services:
api:
deploy:
replicas: 2
cpus: '1.0'
mem_limit: 512m