Document scaling experiment, measured database boundary and verified failure recovery

This commit is contained in:
2026-11-06 18:16:18 +03:00
parent 029bf9b377
commit a0ca0af168
52 changed files with 28893 additions and 95 deletions
+11 -11
View File
@@ -1,13 +1,13 @@
# 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
# Local synthetic Docker Compose configuration. make bootstrap creates .env
# and private secrets once; never commit generated .env or secrets/.
PUBLIC_PORT=8083
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
IDEMPOTENCY_TTL_SECONDS=86400
API_CPUS=0.5
API_MEMORY=256m
POOL_MAX_SIZE=8
PG_CPUS=1
PG_MEMORY=768m
# API_IMAGE defaults to mtusi-vasilev:lab3; set it for an already built rolling image.
# DATABASE_URL_FILE and CACHE_URL_FILE are fixed to /run/secrets/... in compose.yaml.
# Runtime binds 0.0.0.0:8080. Cache TTL60s and idempotency TTL24h are fixed policy.