ЛР3 БВТ2304 Запорожец на 4

HAProxy + 2 API-реплики, общие PostgreSQL/Valkey, обязательный Idempotency-Key,
graceful drain по SIGTERM, stop-one/restart/rolling-update, серии отказов и REPORT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 17:36:07 +03:00
co-authored by Claude Opus 5.5
parent 0ab3a341aa
commit 95556845e6
46 changed files with 4300 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
# Перезапуск ВСЕГО стенда: lb, все API-реплики, PostgreSQL, Valkey — с сохранением volumes.
# Не выполняет down -v, FLUSHALL и повторный seed. Готовность API ожидает сам тест.
set -eu
cd "$(dirname "$0")/.."
compose() { docker compose --env-file .env "$@"; }
started_at() { docker inspect -f '{{.Name}} {{.State.StartedAt}}' $(compose ps -q lb api postgres valkey); }
echo 'before:'; started_at
compose stop lb api # сначала входная точка и клиенты хранилищ
compose restart postgres valkey # обычный restart контейнеров: volume pgdata остаётся
compose start api lb
echo 'after:'; started_at