forked from mtusi2026/mtusi2026lab6
Перенесён минимум lab5 без изменения API и добавлена наблюдаемость: - OTel SDK в API и worker: traces, metrics, logs по OTLP; W3C trace context API -> outbox -> RabbitMQ -> worker (producer/consumer spans, retry в той же трассе); - OTel Collector (memory_limiter, scrub, batch, ограниченные очереди, профиль tail sampling), Prometheus, Loki, Tempo, Grafana с provisioning, dashboard и 6 alert rules с runbooks; - проверки: наблюдаемость и приватность, инциденты A/B/C, насыщение worker, переполнение очереди exporter, эксперимент трека 1 (4 конфигурации x 3 прогона); - CI job со сборкой и запуском стенда; REPORT.md с доказательствами в evidence/.
17 lines
1.1 KiB
Plaintext
17 lines
1.1 KiB
Plaintext
# 2026-11-09T13:40:58Z
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh (run 1)
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 1.997}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
mtusi-lab6-api-1-1 Up 47 hours (healthy)
|
|
$ docker compose start api-1 api-2
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh (run 2)
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 0.903}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
mtusi-lab6-api-2-1 Up 41 seconds (healthy)
|
|
$ docker compose start api-1 api-2
|
|
FAILOVER_DONE
|