Files
mtusi2026lab5/evidence/failover-hook.txt
T
RainakandClaude Opus 5.5 0a221b0675 ЛР5 БВТ2304 Запорожец на 5
RabbitMQ (quorum queue, publisher confirms, manual ack, DLX) + отдельный worker:
staging в S3 + вложение/job/outbox одной транзакцией -> 202 queued; relay outbox,
lease с heartbeat и fencing (worker_id, attempt), retry с backoff+jitter, failed-реестр,
безопасный replay с audit; thumbnail/crop/WebP в изолированном процессе с лимитами.
Тесты окон отказа (fault injection), трек 1 «Очередь под перегрузкой» с backpressure.
Перенесено исправление замечания lab3 PR #99 (U+0000 в тексте).

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

18 lines
1.3 KiB
Plaintext

# 2026-11-17T15:27:35Z, commit 276dbda
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": 137, "failed_attempts": 0, "first_recovery_seconds": 4.458}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab5-api-2 Up 5 seconds (healthy)
mtusi-lab5-api-1 Up About a minute (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": 137, "failed_attempts": 0, "first_recovery_seconds": 4.163}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab5-api-2 Up 31 seconds (healthy)
mtusi-lab5-api-1 Up 5 seconds (healthy)
# evidence/stop-one.log (what the hook really stopped):
2026-11-17T15:27:38Z mode=stop instance=cdb3725c641e-b9c808 container=mtusi-lab5-api-2 state=exited exit=0 finished=2026-11-17T15:27:42.125871236Z
2026-11-17T15:28:04Z mode=stop instance=824c92061861-f52bc3 container=mtusi-lab5-api-1 state=exited exit=0 finished=2026-11-17T15:28:07.582211619Z