Лабораторная работа 3

This commit is contained in:
2026-10-26 23:23:12 +03:00
parent 0ab3a341aa
commit fafd1828c0
70 changed files with 6665 additions and 25 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# Hook для make test-persistence: перезапускает API (все реплики), PostgreSQL,
# Redis и LB, сохраняя volumes. Никаких down -v / flush / повторного seed.
# Возвращает 0, когда API снова healthy; готовность LB тест ждёт сам.
set -eu
cd "$(dirname "$0")/.."
PY=$(command -v python3 || command -v python)
exec "$PY" scripts/ops.py restart