42 lines
2.5 KiB
Plaintext
42 lines
2.5 KiB
Plaintext
# failover run 2026-11-07T17:39:07.3980307+03:00
|
|
# command (= make test-failover ACTION_SCRIPT=scripts/stop-one.cmd): python tests/resilience.py --mode failover --action-script scripts/stop-one.cmd --base-url http://localhost:8080
|
|
## run 1 - before (shift requests through LB: 0)
|
|
messenger-lab3-api-1 8b33a91fafee Up 20 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 2 minutes (healthy)
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 1.27}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
exit=0
|
|
## run 1 - after
|
|
messenger-lab3-api-1 8b33a91fafee Exited (0) 14 seconds ago
|
|
messenger-lab3-api-2 a87734e887a5 Up 2 minutes (healthy)
|
|
## restored (docker compose --env-file .env up -d --wait)
|
|
messenger-lab3-api-1 8b33a91fafee Up 6 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 2 minutes (healthy)
|
|
## run 2 - before (shift requests through LB: 0)
|
|
messenger-lab3-api-1 8b33a91fafee Up 6 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 2 minutes (healthy)
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 1.166}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
exit=0
|
|
## run 2 - after
|
|
messenger-lab3-api-1 8b33a91fafee Exited (0) 14 seconds ago
|
|
messenger-lab3-api-2 a87734e887a5 Up 3 minutes (healthy)
|
|
## restored (docker compose --env-file .env up -d --wait)
|
|
messenger-lab3-api-1 8b33a91fafee Up 6 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 3 minutes (healthy)
|
|
## run 3 - before (shift requests through LB: 1)
|
|
messenger-lab3-api-1 8b33a91fafee Up 6 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 3 minutes (healthy)
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 1.213}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
exit=0
|
|
## run 3 - after
|
|
messenger-lab3-api-1 8b33a91fafee Up 22 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Exited (0) 14 seconds ago
|
|
## restored (docker compose --env-file .env up -d --wait)
|
|
messenger-lab3-api-1 8b33a91fafee Up 31 seconds (healthy)
|
|
messenger-lab3-api-2 a87734e887a5 Up 6 seconds (healthy)
|