Files
mtusi2026lab7/evidence/lab6/db-pause.txt
T
Vladislav Kunetskiy 3d216fbd50 База lab7: контракт 1.7.0 и реализация lab1–lab6
Перенесены 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.
2026-11-09 13:03:49 +03:00

14 lines
721 B
Plaintext

PostgreSQL pause (short burst) — local check
=============================================
$ docker compose --env-file .env pause postgres
$ python3 scripts/lab6_load.py --rate 1 --duration 8 --upload-ratio 0 --deadline 5
messages were attempted during a frozen DB; client deadline errors are bad.
$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m]))
-> 0.017002102915598543
$ slo:api_error_ratio:5m -> 0
$ docker compose --env-file .env unpause postgres
$ make test -> PASS lab6 public API scenario
$ Prometheus alerts -> []
Interpretation: a short sub-5m burst is below the multi-window page threshold;
this is the expected no-page control, not evidence of a sustained incident.