Files
mtusi2026lab3-implementaion/evidence/failover-1.txt
T

15 lines
793 B
Plaintext

$ api replicas before
messenger-lab3_api_1 hostname=0405cf8a4a54 Up 10 seconds
messenger-lab3_api_2 hostname=2751ae93e6d1 Up 10 seconds
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 87, "failed_attempts": 1, "first_recovery_seconds": 2.52}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ api replicas after (stopped one = TARGET_INSTANCE_ID)
messenger-lab3_api_1 hostname=0405cf8a4a54 Up 26 seconds
messenger-lab3_api_2 hostname=2751ae93e6d1 Exited (0) 15 seconds ago