feat(lb): tune load balancer config for load testing

This commit is contained in:
kk10
2026-10-20 13:15:31 +03:00
parent 8d6dfc0d33
commit 3f639bd7e6
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -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
View File
@@ -79,7 +79,7 @@ services:
deploy:
resources:
limits:
cpus: "0.5"
cpus: ${LB_CPUS:-0.5}
memory: 128M
depends_on:
api:
+3 -1
View File
@@ -1,4 +1,6 @@
events {}
events {
worker_connections 4096;
}
http {
resolver 127.0.0.11 valid=2s ipv6=off;