Files
mtusi2026lab6/evidence/telemetry/outage.txt
T

26 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Доказывает (уровень 4, телеметрия не ломает приложение): Tempo остановлен
# на 120 с под нагрузкой — API отвечает, загрузки принимаются и доходят до
# ready, память Collector ограничена очередью экспорта (20000 элементов),
# потери span считает сам Collector, после возврата Tempo экспорт
# возобновляется и очередь опустошается.
# Дата: 2026-11-15, 22:40 UTC; длительность 146 с.
# Окружение: macOS 26.7.1, Docker 29.9.2, Compose 5.6.1, Python хоста 3.11.9.
# Стенд: рабочий (make up); LB 127.0.0.1:8180.
# Код: src_sha256 81c47ffceeb40acc6f333a9265a15480b3e13e2cb53b2e2229e5fa7391bd0b7a
# Повторить: make up && make telemetry-outage [OUTAGE_SECONDS=120]
$ make telemetry-outage
python3 scripts/lab6.py telemetry-outage --base-url "http://localhost:8180" --seconds 120
before: collector 58 MiB, spans lost so far 0
PASS API answers during 120 s without Tempo: GET /users/me statuses {200: 1178}
PASS uploads accepted and processed without Tempo: 11 uploads, ready 11
PASS Collector memory bounded: peak 63 MiB of 256 MiB limit; export queue peak 2060 of 20000 items
PASS lost spans are counted by the Collector: 128 spans (send_failed + enqueue_failed, otlp_http/tempo)
PASS Tempo back: export resumes, queue drained: queue now 37 items
telemetry-outage: PASS (5/5 checks, 146 s)
# Итог: 5/5. За 120 с без Tempo: 1178 ответов 200, 11 из 11 загрузок ready,
# пик Collector 63 МиБ из 256, очередь экспорта пик 2060 из 20000, потеряно
# 128 span (учтены метрикой Collector), после возврата Tempo очередь 37.
# Потери SDK (до Collector) метрикой не считаются — KNOWN_ISSUES.md.