solution
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Отказ второй API-реплики (public failover + прямое доказательство контейнера)
|
||||
Дата: 2026-10-30, тот же стек после restore.
|
||||
|
||||
Public scenario (публичный тест не печатает target, только observed_instances/successes):
|
||||
$ python tests/resilience.py --mode failover --action-script scripts/stop-one.cmd --base-url http://127.0.0.1:8080
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 5, "first_recovery_seconds": 2.969}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
Operator evidence:
|
||||
TARGET_INSTANCE_ID=ab398ccdbed4
|
||||
stopping instance ab398ccdbed4 container ab398ccdbed4e4cb11f2ff896496619d8e6b3fa05c5257c6a7fa43b1f51e8df1
|
||||
instance ab398ccdbed4 stopped
|
||||
hook_seconds=2.872
|
||||
|
||||
$ docker service ps lab3_api --no-trunc
|
||||
...
|
||||
kks674tpkb604f4151ycyf8kp lab3_api.1 ... Ready Pending less than a second ago
|
||||
jp7oc0mllaoxx8trn9mibtn55 \_ lab3_api.1 ... Shutdown Complete less than a second ago
|
||||
kyybq2fofgzaom5jq42k564f6 lab3_api.2 ... Running Running 27 seconds ago
|
||||
...
|
||||
api restored: 2 running tasks and readiness OK
|
||||
|
||||
Последовательно остановлены обе наблюдаемые реплики; каждая остановка завершилась
|
||||
возвратом к двум running tasks перед следующей.
|
||||
Reference in New Issue
Block a user