ЛР2: PostgreSQL, сессии Bearer, кэш Valkey, Compose, исследование индексов и backup

This commit is contained in:
kolya5544
2026-10-03 05:10:45 +03:00
parent 65003b6119
commit 078c9f5f78
29 changed files with 2282 additions and 20 deletions
+18
View File
@@ -0,0 +1,18 @@
# До перезапуска
/mtusi-lab2-postgres-1 StartedAt=2026-10-02T22:27:01.751292444Z restarts=0 health=healthy
/mtusi-lab2-valkey-1 StartedAt=2026-10-02T22:27:04.038032167Z restarts=0 health=healthy
/mtusi-lab2-api-1 StartedAt=2026-10-02T22:26:48.094412012Z restarts=0 health=healthy
# docker volume ls (должны сохраниться)
mtusi-lab2_pgdata
mtusi-lab2_valkeydata
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh (на Windows: scripts/restart.cmd, тот же compose restart)
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
# После перезапуска (StartedAt всех трёх сервисов изменился, volumes на месте)
/mtusi-lab2-postgres-1 StartedAt=2026-10-02T22:27:28.059336695Z restarts=0 health=starting
/mtusi-lab2-valkey-1 StartedAt=2026-10-02T22:27:28.233209818Z restarts=0 health=starting
/mtusi-lab2-api-1 StartedAt=2026-10-02T22:27:28.462473382Z restarts=0 health=starting
mtusi-lab2_pgdata
mtusi-lab2_valkeydata