Files

16 lines
711 B
Plaintext

date: 2026-10-30T16:04:40Z
command: python student-tests/failover.py
# ACTION_SCRIPT=scripts/stop-one.cmd TARGET_INSTANCE_ID from X-Instance-Id
first run (api-1 stopped, api-2 continued):
{"observed_instances_before": 2, "successful_writes": 91, "failed_attempts": 2, "first_recovery_seconds": 2.464}
PASS: failover preserved confirmed data and existing session.
after restore api-1:
second run:
{"observed_instances_before": 2, "successful_writes": 90, "failed_attempts": 2, "first_recovery_seconds": 2.74}
PASS: failover preserved confirmed data and existing session.
docker compose ps after first failover: api-1 Exited, api-2 healthy.
Manual stop of the other replica: evidence/sequential_stop_api2.json