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.
916 B
916 B
API error / availability SLI
- Grafana → Lab6 → API overview. Check
slo:api_error_ratio:5mand the edge panel; 5xx at HAProxy is the SLI, API-side 5xx is diagnostic. - Prometheus → Status → Targets:
haproxy,otel-collector,rabbitmqmust be UP. If HAProxy is DOWN, no edge SLI exists; inspectdocker compose ps lb. - HAProxy stats
http://127.0.0.1:8404/stats: look for DOWN replicas andcheckerrors. A staleX-Instance-Idis the stopped replica. - If all replicas are DOWN, check
/health/readyof one replica (5xx means DB/S3 dependency) and PostgreSQL logs. - For a slow handler, open a Tempo trace from the error panel; DB child span (
SELECT/INSERT/UPDATE/BEGIN/COMMIT) duration vs HTTP span shows whether PostgreSQL or the handler is slow. Correlatetrace_idin Loki. - Recover DB/S3, wait for HAProxy
rise 2, then verify a 2xx through the LB and resolved alert.