forked from mtusi2026/mtusi2026lab6
67 lines
4.7 KiB
Plaintext
67 lines
4.7 KiB
Plaintext
# 2026-10-26 19:30:28 UTC | Failover #1: реплики до | exit 0 | 0.2s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 running healthy messenger-api:lab3 api1 UP
|
|
a21409fffeec messenger-lab3-api-2 running healthy messenger-api:lab3 api2 UP
|
|
# 2026-10-26 19:30:44 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": 115, "failed_attempts": 0, "first_recovery_seconds": 4.672}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
# 2026-10-26 19:30:44 UTC | Failover #1: реплики после (остановлена именно цель теста) | exit 0 | 0.3s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 running healthy messenger-api:lab3 api1 UP
|
|
a21409fffeec messenger-lab3-api-2 exited unhealthy messenger-api:lab3 - -
|
|
|
|
# 2026-10-26 19:30:51 UTC | Failover #1: restore | exit 0 | 6.4s
|
|
$ python scripts/ops.py restore
|
|
2026-10-26T19:30:51.183Z restore: started ['messenger-lab3-api-2']; 2 replicas healthy and UP in LB after 6.3s
|
|
|
|
# 2026-10-26 19:30:51 UTC | Failover #2: реплики до | exit 0 | 0.3s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 running healthy messenger-api:lab3 api1 UP
|
|
a21409fffeec messenger-lab3-api-2 running healthy messenger-api:lab3 api2 UP
|
|
|
|
# 2026-10-26 19:31:07 UTC | Failover #2: make test-failover | exit 0 | 16.2s
|
|
$ 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": 116, "failed_attempts": 0, "first_recovery_seconds": 4.094}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
# 2026-10-26 19:31:07 UTC | Failover #2: реплики после (остановлена именно цель теста) | exit 0 | 0.2s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 running healthy messenger-api:lab3 api1 UP
|
|
a21409fffeec messenger-lab3-api-2 exited unhealthy messenger-api:lab3 - -
|
|
|
|
# 2026-10-26 19:31:13 UTC | Failover #2: restore | exit 0 | 6.0s
|
|
$ python scripts/ops.py restore
|
|
2026-10-26T19:31:13.832Z restore: started ['messenger-lab3-api-2']; 2 replicas healthy and UP in LB after 5.9s
|
|
|
|
# 2026-10-26 19:31:14 UTC | Failover #3: реплики до | exit 0 | 0.3s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 running healthy messenger-api:lab3 api1 UP
|
|
a21409fffeec messenger-lab3-api-2 running healthy messenger-api:lab3 api2 UP
|
|
|
|
# 2026-10-26 19:31:30 UTC | Failover #3: 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": 116, "failed_attempts": 0, "first_recovery_seconds": 4.766}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
# 2026-10-26 19:31:30 UTC | Failover #3: реплики после (остановлена именно цель теста) | exit 0 | 0.3s
|
|
$ python scripts/ops.py ps
|
|
X-Instance-Id container state health image lb lb_status
|
|
c4c5ae5b0949 messenger-lab3-api-1 exited unhealthy messenger-api:lab3 - -
|
|
a21409fffeec messenger-lab3-api-2 running healthy messenger-api:lab3 api2 UP
|
|
|
|
# 2026-10-26 19:31:37 UTC | Failover #3: restore | exit 0 | 6.4s
|
|
$ python scripts/ops.py restore
|
|
2026-10-26T19:31:37.160Z restore: started ['messenger-lab3-api-1']; 2 replicas healthy and UP in LB after 6.3s
|
|
|
|
# остановленные публичным тестом реплики: ['a21409fffeec', 'a21409fffeec', 'c4c5ae5b0949']
|