forked from mtusi2026/mtusi2026lab6
18 lines
1.1 KiB
Plaintext
18 lines
1.1 KiB
Plaintext
# make test-failover: stop-one.sh останавливает реплику, обслужившую тест
|
|
# date: 2026-11-20T14:33:10Z
|
|
# commit: d83876f
|
|
|
|
## до
|
|
/messenger-lab6-api-1 id=64377e499417 running exit=0 finished=2026-11-20T14:33:08.109900069Z
|
|
/messenger-lab6-api-2 id=25ff01cef182 running exit=0 finished=2026-11-20T14:33:05.646476717Z
|
|
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
|
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": 128, "failed_attempts": 0, "first_recovery_seconds": 3.571}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
## после: остановленная реплика Exited (0) — штатное завершение по SIGTERM
|
|
/messenger-lab6-api-1 id=64377e499417 running exit=0 finished=2026-11-20T14:33:08.109900069Z
|
|
/messenger-lab6-api-2 id=25ff01cef182 exited exit=0 finished=2026-11-20T14:33:19.073873959Z
|