forked from mtusi2026/mtusi2026lab3
ЛР 3 — БПИ2303 — Морару — на 5: API на TypeScript/Node, HAProxy, failover, трек 1
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Restarts the LB, every API replica and PostgreSQL; the pgdata volume and the schema are kept as is.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
docker compose stop lb api # graceful SIGTERM, replicas drain first
|
||||
docker compose restart postgres # same container, same volume
|
||||
docker compose start api lb # migrate is a no-op on an up-to-date schema
|
||||
Reference in New Issue
Block a user