Implement lab3 replicated API and experiment evidence

This commit is contained in:
Polusikkkk
2026-10-29 20:20:13 +03:00
parent 0ab3a341aa
commit 5847952e76
48 changed files with 4013 additions and 33 deletions
+18 -12
View File
@@ -1,13 +1,19 @@
# 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 settings for the lab3 Docker Compose stack.
# Create .env from this template and replace the password.
# Never commit .env or real credentials.
POSTGRES_PASSWORD=replace_with_a_local_random_password
# Lifetime of newly created sessions, in seconds.
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
# Public user profile cache lifetime, in seconds.
USER_CACHE_TTL_SECONDS=60
# Other settings are defined in compose.yaml:
# - public endpoint: http://127.0.0.1:18082
# - two API replicas
# - PostgreSQL connection parameters
# - Redis connection parameters
#
# Idempotency records have no automatic expiration or cleanup.