lab3: haproxy, replicas, idempotency, automated failover tests

This commit is contained in:
2026-10-26 23:45:32 +03:00
parent 0ab3a341aa
commit dd06261d75
42 changed files with 1569 additions and 45 deletions
+2 -12
View File
@@ -1,13 +1,3 @@
# 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 teaching environment. Use Latin letters/digits/underscore in the password.
POSTGRES_PASSWORD=lab3_local_password
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