Files
mtusi2026lab5/evidence/uploads/lb-timeouts.md
T
2026-10-31 16:51:29 +03:00

22 lines
2.0 KiB
Markdown
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.
# Сроки LB пути загрузки
- Команда: `python3 .claude/skills/run-mtusi-messenger/driver.py lb-upload-timeouts`
- Дата: 2026-10-31, 13:37:02 UTC; код выхода 0
- Commit: `e2a6427` (ветка `feat/pipeline-reliability`), рабочее дерево без правок кода (добавлены только файлы `evidence/`)
- Стенд: без рабочего стенда, временная сеть: HAProxy закреплённого образа с `infra/haproxy/haproxy.cfg` и заглушка реплики на образе API
- Спек: `load-balancing`, «Загрузки через балансировщик», «Ошибки балансировщика в формате контракта». Цепочка после тела — 26 с < `timeout server` 30 с, длительность загрузки 73 с < дренаж 90 с (design change `pipeline-reliability`, решение 11)
- В строке `config` абсолютный путь заменён на путь от корня репозитория
```text
config infra/haproxy/haproxy.cfg
haproxy haproxy:3.4.6-trixie@sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26, stub image mtusi-messenger:lab5, LB 127.0.0.1:64760
haproxy -c: exit 0
case expected got time
upload: replica silent 12 s before body 202 replica 11.5–17 s 202 replica 12.28 s
upload: replica silent 12 s after body 202 replica 11.5–17 s 202 replica 12.13 s
other path: replica silent 12 s 504 unavailable 9.5–12 s 504 LB application/json 10.02 s
upload: replica silent 32 s 504 unavailable 29.5–32 s 504 LB application/json 30.11 s
upload: client silent mid-body 400 invalid_request 29–33 s 400 LB application/json 30.03 s
PASS: the upload path waits 30 s for the replica, other paths 10 s, LB errors are in the contract format
```