Files
2026-10-23 19:41:36 +03:00

22 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Отчёт — лабораторная 3
- Автор, группа: Никифорова Екатерина, БВТ2301
- Целевая оценка: **4** (уровни 3 и 4 выполнены, трек 5 не заявлен)
- Commit/PR: #50 (ссылка: https://gitea.privcloud.tech/mtusi2026/mtusi2026lab3/pulls/50)
- Использованные источники, библиотеки и помощь ИИ: FastAPI 0.115, Uvicorn 0.30, PostgreSQL 17.6, Valkey 8.1.3, Nginx 1.27, psycopg 3.2, Argon2id. Помощь ИИ при написании кода и отчёта.
## Запуск из чистого clone
Требования: Docker Engine ≥ 24 с Compose v2, Python ≥ 3.9 (для тестов), `sh` (Git Bash на Windows) или Python.
```bash
git clone https://gitea.privcloud.tech/eqktrin/mtusi2026lab3.git
cd mtusi2026lab3
sh scripts/init-secrets.sh # создаёт secrets/* и .env
docker compose --env-file .env up -d --build
# дождаться готовности
until curl -fs localhost:8080/health/ready; do sleep 1; done
# публичный smoke
python tests/smoke.py --base-url http://localhost:8080
# тест отказа (на Windows используйте scripts/stop-one.bat)
python tests/resilience.py --mode failover --action-script "scripts/stop-one.bat" --base-url "http://localhost:8080"