ЛР 3 — БПИ2303 — Морару — на 5: API на TypeScript/Node, HAProxy, failover, трек 1

This commit is contained in:
celis
2026-10-29 20:59:24 +03:00
parent 0ab3a341aa
commit c4f9eb7648
83 changed files with 1862 additions and 19 deletions
+7
View File
@@ -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