Реализовать лабораторную 2 на оценку 4

PostgreSQL как источник истины, непрозрачные сессии в Redis с TTL и AOF, миграции под advisory lock, пул и таймауты, проверки гонки/отката/отказов и отчёт с evidence.
This commit is contained in:
Чиняева
2026-11-06 22:37:31 +03:00
parent 65003b6119
commit df31f4a9fb
43 changed files with 2045 additions and 22 deletions
+10
View File
@@ -0,0 +1,10 @@
@echo off
rem Restart API and all state stores without deleting named volumes.
setlocal
cd /d "%~dp0.."
if not exist ".env" (
echo missing .env; copy .env.example and set local synthetic credentials 1>&2
exit /b 2
)
docker compose --env-file .env restart
exit /b %errorlevel%
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Restart API and ALL state stores without deleting named volumes.
# The public persistence test polls /health/ready itself, so this hook only
# performs the restart and returns non-zero on a Compose error.
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"
if [ ! -f .env ]; then
echo "missing .env; copy .env.example and set local synthetic credentials" >&2
exit 2
fi
docker compose --env-file .env restart