forked from mtusi2026/mtusi2026lab3
ЛР 3: балансировка, 2 реплики API и общая идемпотентность (оценка 3)
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Explicit persistence hook for lab3.
|
||||
# Restart both API replicas and PostgreSQL. Volumes are preserved: no down -v,
|
||||
# no flush, no re-seed. The load balancer stays in front of the replicas.
|
||||
cd "$(dirname "$0")/.."
|
||||
docker compose restart db api1 api2
|
||||
Reference in New Issue
Block a user