ЛР 7 — БВТ2302 — Боданюк — на 3 #66

Closed
wfa wants to merge 16 commits from wfa/mtusi2026lab7:solution/bvt2302-bodanyuk into main
Showing only changes of commit 4c9b0f284b - Show all commits
+5 -5
View File
@@ -18,9 +18,9 @@ docker compose stop lb api relay worker
docker compose restart postgres valkey s3 broker openbao docker compose restart postgres valkey s3 broker openbao
# 3. Operator: unseal (OpenBao is sealed after every start). # 3. Operator: unseal (OpenBao is sealed after every start).
"$PY" scripts/bao_operator.py unseal "$PY" scripts/bao_operator.py unseal
# 4. API replicas (log in to OpenBao again, read their secrets), the LB, then relay and worker. # 4. API replicas (log in to OpenBao again, read their secrets), relay, worker and the LB in ONE
# HAProxy resolves the new replica addresses through Docker DNS by itself. # command: compose starts them in dependency order (lb after api is healthy) and waits for the
docker compose start api # health conditions once, relay/worker in parallel with api (three separate `start` calls cost
docker compose start lb # 3 x ~23 s on Windows and exceeded the test's 90 s budget). HAProxy re-resolves the replicas.
docker compose start relay worker docker compose start api relay worker lb
echo "restart.sh: lb, api (all replicas), relay, worker, postgres, valkey, s3, broker and openbao restarted with volumes preserved; openbao unsealed" echo "restart.sh: lb, api (all replicas), relay, worker, postgres, valkey, s3, broker and openbao restarted with volumes preserved; openbao unsealed"