Files
mtusi2026lab6/REPORT.md
T

37 lines
2.1 KiB
Markdown
Raw 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.
# Отчёт — лабораторная 6
- Автор, группа: Никифорова Екатерина, БВТ2301
- Целевая оценка: **4** (уровни 3 и 4, трек 5 не заявлен)
- Commit/PR: https://gitea.privcloud.tech/eqktrin/mtusi2026lab6 (PR после публикации)
- Источники, библиотеки, помощь ИИ: FastAPI 0.115, Uvicorn 0.30, PostgreSQL 17.6,
Valkey 8.1.3, Silo (`pgsty/silo`), RabbitMQ 3.13-management-alpine, Nginx 1.27,
psycopg 3.2, boto3 1.43.107, Pillow 12.3.0, pika 1.3.2, Argon2id;
OpenTelemetry SDK 1.27.0, `opentelemetry-exporter-otlp-proto-http` 1.27.0,
`opentelemetry-instrumentation-{fastapi,psycopg,botocore,pika,logging}` 0.48b0;
OTel Collector Contrib 0.105.0, Prometheus 2.54.1, Loki 3.1.1, Tempo 2.6.0,
Grafana 11.2.0. Помощь ИИ при написании кода и отчёта.
## Запуск из чистого clone
**Требования:** Docker Engine ≥ 24 с Compose v2, Python ≥ 3.9,
PowerShell (Windows) или sh (Linux), `PYTHONUTF8=1` для публичных тестов
на Windows.
```powershell
git clone https://gitea.privcloud.tech/eqktrin/mtusi2026lab6.git
cd mtusi2026lab6
# секреты: см. README, генерируются локально через init-secrets (PowerShell/sh).
# Проверить наличие secrets/grafana_admin_password, secrets/broker_url,
# secrets/rabbitmq_password и т.д.
docker compose --env-file .env config --quiet
docker compose --env-file .env up -d --build
# дождаться /health/ready у API (и healthy у rabbitmq, которая при первом
# старте на пустом volume инициализирует mnesia до 60 сек)
Invoke-RestMethod http://localhost:8080/health/ready
# Публичный smoke (lab5-функциональность, кумулятивно)
$env:PYTHONUTF8 = "1"
python tests/smoke.py --base-url http://localhost:8080
# Свои тесты lab6 (нагрузка + 2 инцидента + telemetry-down)
python student-tests/test_lab6.py --base-url http://localhost:8080