forked from mtusi2026/mtusi2026lab2
33 lines
1.6 KiB
Plaintext
33 lines
1.6 KiB
Plaintext
# persistence: python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
|
|
# date: 2026-11-06T09:35:18Z; fresh volumes; host: Windows 10, Docker Desktop 27.2.0, 12 CPU / 1.9 GiB for Docker VM
|
|
|
|
$ docker compose ps -a (before)
|
|
SERVICE STATUS
|
|
api Up 18 seconds (healthy)
|
|
migrate Exited (0) 19 seconds ago
|
|
postgres Up 26 seconds (healthy)
|
|
valkey Up 26 seconds (healthy)
|
|
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
$ docker compose ps -a (after)
|
|
SERVICE STATUS
|
|
api Up 1 second (health: starting)
|
|
migrate Exited (0) 1 second ago
|
|
postgres Up 8 seconds (healthy)
|
|
valkey Up 8 seconds (healthy)
|
|
|
|
$ docker compose logs --since 2026-11-06T09:35:18Z postgres valkey api | shutdown/ready lines
|
|
valkey-1 | 7:M 06 Nov 2026 09:35:19.811 * User requested shutdown...
|
|
valkey-1 | 7:M 06 Nov 2026 09:35:20.228 * Ready to accept connections tcp
|
|
api-1 | 2026-11-06 09:35:19,146 INFO messenger: application stopping
|
|
api-1 | 2026-11-06 09:35:28,169 INFO uvicorn.error: Waiting for application startup.
|
|
api-1 | 2026-11-06 09:35:28,171 INFO messenger: application started
|
|
postgres-1 | 2026-11-06 09:35:19.812 UTC [1] LOG: database system is shut down
|
|
postgres-1 | 2026-11-06 09:35:20.286 UTC [29] LOG: database system was shut down at 2026-11-06 09:35:19 UTC
|
|
postgres-1 | 2026-11-06 09:35:20.291 UTC [1] LOG: database system is ready to accept connections
|
|
|
|
$ docker volume ls (volumes kept)
|
|
grigoriev-lab2_pgdata
|