Files
mtusi2026lab7-fork/docs/lab4/evidence/persistence.txt

49 lines
2.7 KiB
Plaintext

# 2026-11-04 14:11:03 UTC | Persistence: контейнеры до | exit 0 | 0.3s
$ docker compose --env-file .env ps -a --format table {{.Name}} {{.Status}} {{.RunningFor}}
NAME STATUS CREATED
messenger-lab4-api-5 Up 32 seconds (healthy) 32 seconds ago
messenger-lab4-api-6 Up 20 seconds (healthy) 21 seconds ago
messenger-lab4-lb-1 Up 11 minutes (healthy) 13 minutes ago
messenger-lab4-migrate-1 Exited (0) 6 minutes ago 13 minutes ago
messenger-lab4-postgres-1 Up 12 minutes (healthy) 13 minutes ago
messenger-lab4-redis-1 Up 12 minutes (healthy) 13 minutes ago
messenger-lab4-s3-1 Up About a minute (healthy) 13 minutes ago
messenger-lab4-s3-init-1 Exited (0) 6 minutes ago 13 minutes ago
# 2026-11-04 14:11:49 UTC | Persistence: make test-persistence (API + PostgreSQL + Redis + S3 + LB) | exit 0 | 45.6s
$ python tests/resilience.py --mode persistence --action-script scripts\restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
# 2026-11-04 14:11:49 UTC | Persistence: контейнеры после (Status = Up N seconds) | exit 0 | 0.2s
$ docker compose --env-file .env ps -a --format table {{.Name}} {{.Status}} {{.RunningFor}}
NAME STATUS CREATED
messenger-lab4-api-5 Up 7 seconds (healthy) About a minute ago
messenger-lab4-api-6 Up 7 seconds (healthy) About a minute ago
messenger-lab4-lb-1 Up 1 second (health: starting) 14 minutes ago
messenger-lab4-migrate-1 Exited (0) 7 minutes ago 14 minutes ago
messenger-lab4-postgres-1 Up 38 seconds (healthy) 14 minutes ago
messenger-lab4-redis-1 Up 39 seconds (healthy) 14 minutes ago
messenger-lab4-s3-1 Up 28 seconds (healthy) 14 minutes ago
messenger-lab4-s3-init-1 Exited (0) 7 minutes ago 14 minutes ago
# 2026-11-04 14:11:52 UTC | Persistence: сверка БД <-> S3 после рестарта | exit 0 | 2.4s
$ python scripts/ops.py reconcile
Container messenger-lab4-api-run-e029350f1930 Creating
Container messenger-lab4-api-run-e029350f1930 Created
{
"mode": "dry-run",
"grace_seconds": 900,
"stale_pending": 0,
"stale_pending_ids": [],
"objects_listed": 182,
"orphan_objects": 0,
"orphan_objects_within_grace": 0,
"orphan_objects_sample": [],
"bucket_scan_seconds": 0.062,
"ready_rows": 182,
"missing_objects": 0,
"missing_object_ids": [],
"total_seconds": 0.073
}