fix: start DNS-resolved replicas down until checks pass

Without init-state down HAProxy marked a slot UP as soon as Docker DNS
returned the container address, before uvicorn listened, so requests
after LB restart or scale-up hit a replica that was not ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 18:08:50 +03:00
co-authored by Claude Opus 5.5
parent ab71c3b51e
commit 4e0cc4e965
4 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ evidence, потом коммит evidence и отчёта (бриф основ
Проверка: `grep -n "(лаба 3)" AGENTS.md` — только
`rolling-update.sh`.
- [ ] 5.2 Общая проверка кода:
- [x] 5.2 Общая проверка кода:
- `make lint`, `make check`;
- `openspec validate replicas-lb --strict`;
- `make test`, `make student_test` через LB;