HAProxy + 2 API-реплики, общие PostgreSQL/Valkey, обязательный Idempotency-Key, graceful drain по SIGTERM, stop-one/restart/rolling-update, серии отказов и REPORT.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
1.3 KiB
Plaintext
18 lines
1.3 KiB
Plaintext
# 2026-11-05T14:25:23Z
|
|
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": 136, "failed_attempts": 0, "first_recovery_seconds": 4.126}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
mtusi-lab3-api-6 Up 5 seconds (healthy)
|
|
mtusi-lab3-api-5 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": 135, "failed_attempts": 0, "first_recovery_seconds": 4.11}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
mtusi-lab3-api-6 Up 30 seconds (healthy)
|
|
mtusi-lab3-api-5 Up 5 seconds (healthy)
|
|
|
|
# evidence/stop-one.log (what the hook really stopped):
|
|
2026-11-05T14:25:26Z mode=stop instance=82960260fe7e-344e05 container=mtusi-lab3-api-6 state=exited exit=0 finished=2026-11-05T14:25:29.520617248Z
|
|
2026-11-05T14:25:50Z mode=stop instance=94d5b20af90c-f97c77 container=mtusi-lab3-api-5 state=exited exit=0 finished=2026-11-05T14:25:54.028076335Z
|