forked from mtusi2026/mtusi2026lab3
ЛР 3 — БВТ2304 — Черников
HAProxy перед двумя репликами API, X-Instance-Id, общая идемпотентность отправки сообщения в PostgreSQL, двухшаговая остановка реплики по SIGTERM, лимиты CPU/RAM, хуки stop-one и restart. Проверки отказов, эксперимент и поочерёдное обновление в scripts/lab3_checks.py, отчёт в REPORT.md, результаты в evidence/, команды для показа в DEMO.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Hook for: make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
# Restarts the whole stand: all API replicas, PostgreSQL, Valkey and the load balancer,
|
||||
# keeping the named volumes: no "down -v", no FLUSHALL, no re-seed.
|
||||
# The test itself waits for API readiness through the load balancer afterwards.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
docker compose stop api
|
||||
docker compose restart postgres valkey
|
||||
docker compose start api
|
||||
docker compose restart lb
|
||||
Reference in New Issue
Block a user