test: extend collector outage to 300 s in telemetry incident

This commit is contained in:
2026-11-20 18:11:19 +03:00
parent d83876fa90
commit 2718c3b432
14 changed files with 818 additions and 587 deletions
+9 -9
View File
@@ -1,17 +1,17 @@
# make test-failover: stop-one.sh останавливает реплику, обслужившую тест
# date: 2026-11-20T13:47:23Z
# commit: 5f870e4
# date: 2026-11-20T14:33:10Z
# commit: d83876f
## до
/messenger-lab6-api-1 id=5eb61d3915d1 created exit=0 finished=0001-01-01T00:00:00Z
/messenger-lab6-api-2 id=b4948f100e42 created exit=0 finished=0001-01-01T00:00:00Z
/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"
FAIL: GET /health/live: connection/TLS failure (URLError)
make: *** [Makefile:30: test-failover] Error 1
EXIT CODE 2
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=5eb61d3915d1 created exit=0 finished=0001-01-01T00:00:00Z
/messenger-lab6-api-2 id=b4948f100e42 created exit=0 finished=0001-01-01T00:00:00Z
/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