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
+6 -2
View File
@@ -255,11 +255,15 @@
- `make bench_rollout_quick` — код 0, в `meta.json` метки
`from_commit` `e1161f7`;
- ревизия до замены — `e656d6bbe1a4`, после — новая.
- [ ] 7.2 Регресс прежних профилей: `make bench_quick`, `make
- [x] 7.2 Регресс прежних профилей: `make bench_quick`, `make
bench_failover_quick`, `make bench_restore_quick` — код 0. В
`explain-10k.txt` пробной метки узел истории — прежний индекс
`messages`, а `SubPlan` идёт по `pk_message_attachments` (решение 8).
Пробные метки `quick-*` в git не идут.
Пробные метки `quick-*` в git не идут. Уточнения apply 2, 8, 9: на
пустой таблице стенда `SubPlan` — `Seq Scan`, с данными —
`pk_message_attachments`; гонка `switch_api` в `bench_restore`
исправлена в этом change (`restore_quick` трижды и `--sizes 10000`
трижды — код 0).
## 8. Документы и проверка кода