Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment

This commit is contained in:
Vladislav Agapov
2026-10-15 17:09:26 +03:00
parent 65003b6119
commit b90581f613
184 changed files with 15853 additions and 56 deletions
+19 -8
View File
@@ -1,11 +1,22 @@
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md.
# Synthetic isolated environment only. Never commit the local .env.
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
DATABASE_URL=postgres://messenger:REPLACE_LOCALLY@127.0.0.1:5432/messenger?sslmode=disable
VALKEY_SHARDS=shard0=127.0.0.1:6379,shard1=127.0.0.1:6380
VALKEY_COORDINATOR=shard0
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
DEPENDENCY_POOL_SIZE=8
DEPENDENCY_TIMEOUT_MS=1000
REQUEST_TIMEOUT_SECONDS=3
SHUTDOWN_TIMEOUT_SECONDS=5
MAX_IN_FLIGHT=32
REQUESTS_PER_SECOND=1000
AUTH_RATE=100
AUTH_SLOTS=4
USER_RATE=100
USER_SLOTS=8
USER_WRITE_RATE=50
USER_WRITE_SLOTS=4
USER_AUTH_RATE=20
USER_AUTH_SLOTS=2
LOG_LEVEL=info