Files
mtusi2026lab4/evidence/failover.txt
T
Ilya a97c35fc12 выполнение ЛР4 на 4
- S3: SeaweedFS 4.51 (MinIO-образы недоступны), приватный bucket,
  отдельные ограниченные ключи API, служебные порты закрыты;
  идемпотентный s3-init с проверкой приватности и прогревом записи
- вложения: потоковая загрузка PNG/JPEG, лимиты 10 MiB / 40 Мпикс,
  тип по содержимому, проверка filename, скачивание только участникам
- согласованность PG/S3: pending -> PUT -> ready, компенсация, sweeper
  с grace и dry-run; attachment_ids в сообщениях, FK по чату
- back-pressure на S3 PUT после найденного OOM SeaweedFS
- тесты student-tests, evidence, REPORT.md, DEMO.md
2026-10-28 18:06:07 +03:00

15 lines
1004 B
Plaintext

# 2026-10-28T12:50:25Z (immediately after the persistence restart)
## run 1
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 111, "failed_attempts": 0, "first_recovery_seconds": 3.254}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
## run 2
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 119, "failed_attempts": 0, "first_recovery_seconds": 1.805}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
## stop-one.sh log
2026-10-28T12:50:30Z stopped messenger-lab4-api-1 (1765636c87f6) instance=api-32eb21c0 state=exited
2026-10-28T12:50:54Z stopped messenger-lab4-api-1 (1765636c87f6) instance=api-53bf8995 state=exited