forked from mtusi2026/mtusi2026lab3
feat(lb): tune load balancer config for load testing
This commit is contained in:
+2
-1
@@ -8,7 +8,7 @@ LOG_LEVEL=INFO
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
|
||||
# Session store: postgres | redis (redis requires CACHE_URL_FILE)
|
||||
SESSION_STORE=postgres
|
||||
SESSION_STORE=redis
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
|
||||
API_REPLICAS=2
|
||||
@@ -16,3 +16,4 @@ IDEMPOTENCY_TTL_SECONDS=86400
|
||||
|
||||
API_CPUS=0.5
|
||||
API_MEM=256M
|
||||
LB_CPUS=0.5
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
cpus: ${LB_CPUS:-0.5}
|
||||
memory: 128M
|
||||
depends_on:
|
||||
api:
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
events {}
|
||||
events {
|
||||
worker_connections 4096;
|
||||
}
|
||||
|
||||
http {
|
||||
resolver 127.0.0.11 valid=2s ipv6=off;
|
||||
|
||||
Reference in New Issue
Block a user