forked from mtusi2026/mtusi2026lab4
Implement lab4 S3 attachments and resilience
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab4-api1-1 mtusi2026lab4-api1 "uvicorn src.main:ap…" api1 8 minutes ago Up 15 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab4-api2-1 mtusi2026lab4-api2 "uvicorn src.main:ap…" api2 8 minutes ago Up 15 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab4-db-1 postgres:16-alpine "docker-entrypoint.s…" db 22 minutes ago Up 22 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab4-migrate-1 mtusi2026lab4-migrate "python -m src.migra…" migrate 4 minutes ago Exited (0) Less than a second ago
|
||||
mtusi2026lab4-minio-1 rustfs/rustfs:1.0.3 "/entrypoint.sh /data" minio 22 minutes ago Up 22 seconds 9000-9001/tcp
|
||||
mtusi2026lab4-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 22 minutes ago Up 2 minutes 127.0.0.1:8080->80/tcp
|
||||
mtusi2026lab4-s3-init-1 mtusi2026lab4-s3-init "python -m src.s3_se…" s3-init 8 minutes ago Exited (0) 1 second ago
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 121, "failed_attempts": 0, "first_recovery_seconds": 0.903}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,4 @@
|
||||
api1:
|
||||
129285ef-99ed-475b-b17a-89a955089156
|
||||
api2:
|
||||
ff71cea4-7b02-4f29-9931-b67b51594a6c
|
||||
@@ -0,0 +1,5 @@
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Already applied: 003_attachments.sql
|
||||
Already applied: 004_allow_empty_message_text.sql
|
||||
Migrations completed
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --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.
|
||||
@@ -0,0 +1,4 @@
|
||||
/mtusi2026lab4-api1-1 2026-11-16T20:10:56.252894727Z
|
||||
/mtusi2026lab4-api2-1 2026-11-16T20:10:56.255219312Z
|
||||
/mtusi2026lab4-db-1 2026-11-16T20:10:49.101014076Z
|
||||
/mtusi2026lab4-minio-1 2026-11-16T20:10:49.012555397Z
|
||||
@@ -0,0 +1,3 @@
|
||||
/mtusi2026lab4-api1-1 2026-11-16T20:07:21.532908614Z
|
||||
/mtusi2026lab4-db-1 2026-11-16T20:07:14.361368694Z
|
||||
/mtusi2026lab4-minio-1 2026-11-16T20:07:14.222524846Z
|
||||
@@ -0,0 +1,4 @@
|
||||
api1:
|
||||
['messenger-attachments']
|
||||
api2:
|
||||
['messenger-attachments']
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
Reference in New Issue
Block a user