Files
mtusi2026lab4/evidence/resilience_grade4.txt
T
2026-10-30 21:09:56 +03:00

24 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Grade 4 resilience (local stand, 2026-10-30)
## Persistence
Command: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://127.0.0.1:8080
Result: PASS — message + attachment bytes preserved across restart of db/cache/minio/api/lb; volumes kept.
## Failover
Command: make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://127.0.0.1:8080
Result: PASS
observed_instances_before=2 successful_writes=115 failed_attempts=1 first_recovery_seconds≈5.3
Stopped replica restored afterwards with: docker compose --env-file .env up -d --no-deps api
## Private bucket
Command: sh tests/check_bucket_private.sh
Result: PASS — unsigned GET → 403; host :9000/:9001 not published
## Limited S3 creds
Command: sh student-tests/test_attachment_limited_creds.sh
Result: PASS — API uses S3_*_FILE only; access key ≠ MinIO root; rb by limited user denied
## Load uploads
Command: sh scripts/load_uploads.sh
See evidence/load_uploads.json (10× ~5.6 MiB → 10×201; rss_peak≈163 MiB, rss_delta≈75 MiB).