forked from mtusi2026/mtusi2026lab7
Перенесены cmd/internal/config, compose.yaml, Dockerfile, скрипты, student-tests и evidence из mtusi-messenger (master, lab6). Skeleton lab7 (openapi/infrastructure 1.7.0, trust-matrix.md, security/THREAT_MODEL.md, infra/openbao, tests/security.py) сохранён; make test-security добавлен в Makefile.
892 B
892 B
SLO burn-rate
- Open Grafana → Lab6 → API overview and Jobs and queue.
- Check
slo:api_error_ratio:1h+5mfor fast burn,6h+30mfor slow burn; TTR usesslo:job_ttr_bad_ratio:*. - Fast page means the current hour is consuming the 7-day error budget at
≥14.4×. Confirm edge traffic in HAProxy (
proxy="api_backend"), then inspect API traces for 5xx and DB spans (SELECT/INSERT/UPDATE/BEGIN/COMMIT) or missing workerjob.processspans. - Slow ticket means a sustained 6-hour burn. It can fire with a low current rate; do not suppress it until the 30m window is below 3% (API) or 6% (TTR).
- Resolve only after the SLO ratio stays below the fast/slow thresholds and the underlying dependency (worker, PostgreSQL, broker) is healthy.
- Record injection/restore UTC and the first firing/resolved timestamps in
evidence/lab6/track2/.