forked from mtusi2026/mtusi2026lab3
28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
|
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
|
APP_HOST=0.0.0.0
|
|
APP_PORT=8080
|
|
APP_ENV=lab
|
|
SESSION_TTL_SECONDS=3600
|
|
# Choose credentials locally. File paths contain no secret values.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
|
SESSION_STORE=postgres
|
|
CACHE_URL_FILE=/run/secrets/cache_url
|
|
API_REPLICAS=2
|
|
# Per-replica CPU limit. Series A keeps replicas * API_CPU_LIMIT = 1.0.
|
|
API_CPU_LIMIT=0.50
|
|
# Per-replica memory. Track 1 keeps replicas * API_MEM_LIMIT = 512m.
|
|
API_MEM_LIMIT=256m
|
|
# Base profile for docker compose up. scripts/run_track1.py passes the same defaults.
|
|
HTTP_WORKERS=8
|
|
DB_POOL_SIZE=8
|
|
NGINX_WORKERS=1
|
|
# PostgreSQL cgroup CPU limit.
|
|
DB_CPU_LIMIT=1.0
|
|
# Nginx cgroup CPU limit. 0.25 saturated in the track-1 plateau runs.
|
|
LB_CPU_LIMIT=0.25
|
|
IDEMPOTENCY_TTL_SECONDS=86400
|
|
# Seconds /health/ready stays 503 after SIGTERM before the listen socket closes.
|
|
DRAIN_SECONDS=2
|