forked from mtusi2026/mtusi2026lab3
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:
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
api:
|
||||
environment:
|
||||
DB_POOL_MAX: '8'
|
||||
deploy:
|
||||
replicas: 4
|
||||
cpus: '1.0'
|
||||
mem_limit: 512m
|
||||
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
api:
|
||||
environment:
|
||||
DB_POOL_MAX: '8'
|
||||
deploy:
|
||||
replicas: 4
|
||||
cpus: '0.25'
|
||||
mem_limit: 256m
|
||||
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
api:
|
||||
environment:
|
||||
DB_POOL_MAX: '8'
|
||||
deploy:
|
||||
replicas: 4
|
||||
cpus: '0.5'
|
||||
mem_limit: 256m
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
api:
|
||||
deploy:
|
||||
replicas: 1
|
||||
cpus: '1.0'
|
||||
mem_limit: 1024m
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
api:
|
||||
deploy:
|
||||
replicas: 1
|
||||
cpus: '2.0'
|
||||
mem_limit: 1024m
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
api:
|
||||
deploy:
|
||||
replicas: 2
|
||||
cpus: '0.5'
|
||||
mem_limit: 512m
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
api:
|
||||
deploy:
|
||||
replicas: 2
|
||||
cpus: '1.0'
|
||||
mem_limit: 512m
|
||||
Reference in New Issue
Block a user