docs: REPORT lab2, доказательства со стенда из чистого clone, размеры индексов

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alexey Bodanyuk
2026-10-12 20:20:00 +03:00
co-authored by Claude Opus 5.5
parent eb92e8e91e
commit d65ba991d7
15 changed files with 613 additions and 25 deletions
+24
View File
@@ -0,0 +1,24 @@
# Same persistence test with SESSION_STORE=postgres (sessions in table sessions)
$ SESSION_STORE=postgres docker compose up -d --wait api
Container mtusi-lab2-clean-api-1 Healthy
Container mtusi-lab2-clean-api-1 Recreated
Container mtusi-lab2-clean-postgres-1 Healthy
Container mtusi-lab2-clean-valkey-1 Healthy
api env SESSION_STORE=postgres
containers BEFORE:
api StartedAt=2026-10-12T17:10:11.785377847Z
postgres StartedAt=2026-10-12T17:09:31.655693328Z
valkey StartedAt=2026-10-12T17:09:31.612351204Z
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
containers AFTER:
api StartedAt=2026-10-12T17:10:30.772464788Z
postgres StartedAt=2026-10-12T17:10:23.581636896Z
valkey StartedAt=2026-10-12T17:10:23.504892649Z
sessions rows in PostgreSQL: 3
$ docker compose up -d --wait api # back to the default SESSION_STORE=valkey
Container mtusi-lab2-clean-api-1 Healthy
Container mtusi-lab2-clean-postgres-1 Healthy
Container mtusi-lab2-clean-valkey-1 Healthy
api env SESSION_STORE=valkey