forked from mtusi2026/mtusi2026lab4
28 lines
2.8 KiB
Plaintext
28 lines
2.8 KiB
Plaintext
# persistence
|
|
# date: 2026-10-29T19:39:19 commit: no-git
|
|
|
|
$ docker compose --env-file .env ps
|
|
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
|
mtusi-lab4-api-1 mtusi-messenger:lab4 "python -m app" api 5 minutes ago Up 5 minutes (healthy) 8080/tcp
|
|
mtusi-lab4-api-2 mtusi-messenger:lab4 "python -m app" api 5 minutes ago Up 5 minutes (healthy) 8080/tcp
|
|
mtusi-lab4-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 11 minutes (healthy) 127.0.0.1:8080-8082->8080-8082/tcp
|
|
mtusi-lab4-postgres-1 postgres:16.4-alpine "docker-entrypoint.s…" postgres 20 minutes ago Up 11 minutes (healthy) 5432/tcp
|
|
mtusi-lab4-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 11 minutes (healthy) 6379/tcp
|
|
mtusi-lab4-s3-1 pgsty/minio:RELEASE.2026-08-04T00-00-00Z "/usr/bin/docker-ent…" s3 20 minutes ago Up 51 seconds (healthy) 9000/tcp
|
|
[exit 0]
|
|
|
|
$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe tests/resilience.py --mode persistence --action-script C:\Users\79152\Downloads\mtusi2026lab4-solution (1)\mtusi2026lab4\scripts\restart.cmd --base-url http://localhost: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.
|
|
[exit 0]
|
|
|
|
$ docker compose --env-file .env ps
|
|
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
|
mtusi-lab4-api-1 mtusi-messenger:lab4 "python -m app" api 5 minutes ago Up 5 seconds (health: starting) 8080/tcp
|
|
mtusi-lab4-api-2 mtusi-messenger:lab4 "python -m app" api 5 minutes ago Up 4 seconds (health: starting) 8080/tcp
|
|
mtusi-lab4-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb 21 minutes ago Up 3 seconds (health: starting) 127.0.0.1:8080-8082->8080-8082/tcp
|
|
mtusi-lab4-postgres-1 postgres:16.4-alpine "docker-entrypoint.s…" postgres 21 minutes ago Up 5 seconds (health: starting) 5432/tcp
|
|
mtusi-lab4-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 21 minutes ago Up 7 seconds (healthy) 6379/tcp
|
|
mtusi-lab4-s3-1 pgsty/minio:RELEASE.2026-08-04T00-00-00Z "/usr/bin/docker-ent…" s3 21 minutes ago Up 5 seconds (health: starting) 9000/tcp
|
|
[exit 0]
|