fix: wait for recreated replicas before restore checks in bench

switch_api recreated the API replica with the same IP while HAProxy
still showed the old container's slot UP, so restore_check hit 503
<NOSRV> before the new process listened. Wait until each new replica
answers /health/ready from inside its container, then for LB UP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 01:27:51 +03:00
co-authored by Claude Opus 5.5
parent 116d8d3bf0
commit d56b8928b4
7 changed files with 89 additions and 37 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ SeaweedFS с приватным bucket, bootstrap и клиент `src/infra/s3/
`openspec/changes/archive/`, спеки синхронизированы (с `s3-storage` —
новая capability `object-storage`); дельты активного `attachments`
уже синхронизированы в основные спеки (новая capability `attachments`);
в `KNOWN_ISSUES.md` две открытые записи (гонка переключения API в
профиле `restore`, bootstrap после удаления bucket). Отчёт, evidence и рабочий план лабы 3 остались в её
в `KNOWN_ISSUES.md` одна открытая запись (bootstrap после удаления
bucket). Отчёт, evidence и рабочий план лабы 3 остались в её
репозитории (`REPORT.md`, `evidence/`, `git show 063eedb:PLAN.md`).
Стек: Python 3.12, uv, FastAPI, pydantic v2, pydantic-settings,
structlog (JSON в stdout), redis-py (клиент Valkey), aiobotocore