# 2026-11-04 14:05:30 UTC | Failover #1: реплики до | exit 0 | 0.3s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         running   healthy    messenger-api:lab4     api1   UP
4fc3ad11e268   messenger-lab4-api-2         running   healthy    messenger-api:lab4     api2   UP
# 2026-11-04 14:05:46 UTC | Failover #1: make test-failover (вкл. скачивание файла через другую реплику) | exit 0 | 16.4s
$ 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": 122, "failed_attempts": 0, "first_recovery_seconds": 4.187}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

# 2026-11-04 14:05:46 UTC | Failover #1: реплики после (остановлена именно цель теста) | exit 0 | 0.2s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         running   healthy    messenger-api:lab4     api1   UP
4fc3ad11e268   messenger-lab4-api-2         exited    unhealthy  messenger-api:lab4     -      -

# 2026-11-04 14:05:52 UTC | Failover #1: restore | exit 0 | 6.3s
$ python scripts/ops.py restore
2026-11-04T14:05:52.981Z restore: started ['messenger-lab4-api-2']; 2 replicas healthy and UP in LB after 6.2s

# 2026-11-04 14:05:53 UTC | Failover #2: реплики до | exit 0 | 0.3s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         running   healthy    messenger-api:lab4     api1   UP
4fc3ad11e268   messenger-lab4-api-2         running   healthy    messenger-api:lab4     api2   UP

# 2026-11-04 14:06:09 UTC | Failover #2: make test-failover (вкл. скачивание файла через другую реплику) | exit 0 | 16.3s
$ 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": 0, "first_recovery_seconds": 4.203}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

# 2026-11-04 14:06:09 UTC | Failover #2: реплики после (остановлена именно цель теста) | exit 0 | 0.3s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         running   healthy    messenger-api:lab4     api1   UP
4fc3ad11e268   messenger-lab4-api-2         exited    unhealthy  messenger-api:lab4     -      -

# 2026-11-04 14:06:16 UTC | Failover #2: restore | exit 0 | 6.6s
$ python scripts/ops.py restore
2026-11-04T14:06:16.514Z restore: started ['messenger-lab4-api-2']; 2 replicas healthy and UP in LB after 6.5s

# 2026-11-04 14:06:16 UTC | Failover #3: реплики до | exit 0 | 0.2s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         running   healthy    messenger-api:lab4     api1   UP
4fc3ad11e268   messenger-lab4-api-2         running   healthy    messenger-api:lab4     api2   UP

# 2026-11-04 14:06:33 UTC | Failover #3: make test-failover (вкл. скачивание файла через другую реплику) | exit 0 | 16.3s
$ 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": 122, "failed_attempts": 0, "first_recovery_seconds": 4.203}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

# 2026-11-04 14:06:33 UTC | Failover #3: реплики после (остановлена именно цель теста) | exit 0 | 0.3s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
c9fab9c9e2c1   messenger-lab4-api-1         exited    unhealthy  messenger-api:lab4     -      -
4fc3ad11e268   messenger-lab4-api-2         running   healthy    messenger-api:lab4     api2   UP

# 2026-11-04 14:06:40 UTC | Failover #3: restore | exit 0 | 6.7s
$ python scripts/ops.py restore
2026-11-04T14:06:40.028Z restore: started ['messenger-lab4-api-1']; 2 replicas healthy and UP in LB after 6.6s

# остановленные публичным тестом реплики: ['4fc3ad11e268', '4fc3ad11e268', 'c9fab9c9e2c1']
