forked from mtusi2026/mtusi2026lab3
Реализовать лабораторную 3: две API-реплики за Nginx, Idempotency-Key, failover и эксперимент масштабирования
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
nginx:
|
||||
volumes:
|
||||
- ./infra/scaling/nginx-${REPLICAS:-2}.conf:/etc/nginx/nginx.conf:ro
|
||||
|
||||
api-1:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "${API_CPUS:-0.50}"
|
||||
memory: ${API_MEM:-256M}
|
||||
|
||||
api-2:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "${API_CPUS:-0.50}"
|
||||
memory: ${API_MEM:-256M}
|
||||
Reference in New Issue
Block a user