Files
mtusi2026lab4/evidence/failover-hook.txt
T
RainakandClaude Opus 5.5 2dca5c114b ЛР4 БВТ2304 Запорожец на 3
Вложения: приватный S3-bucket (RustFS 1.0.4) + метаданные в PostgreSQL, upload PNG/JPEG
с лимитами до декодирования, авторизованный download, attachment_ids в сообщениях,
идемпотентный bootstrap bucket, failover/persistence/S3-down тесты и REPORT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:49:12 +03:00

18 lines
1.3 KiB
Plaintext

# 2026-11-12T15:42:03Z, commit ec540a1
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://lb:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 4.666}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab4-api-1 Up 2 minutes (healthy)
mtusi-lab4-api-2 Up 6 seconds (healthy)
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://lb:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 4.244}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab4-api-1 Up 6 seconds (healthy)
mtusi-lab4-api-2 Up 35 seconds (healthy)
# evidence/stop-one.log (what the hook really stopped):
2026-11-12T15:42:09Z mode=stop instance=406b73449330-7c6529 container=mtusi-lab4-api-2 state=exited exit=0 finished=2026-11-12T15:42:12.725820822Z
2026-11-12T15:42:38Z mode=stop instance=9f9f380ebef7-2fe1ee container=mtusi-lab4-api-1 state=exited exit=0 finished=2026-11-12T15:42:41.725669058Z