From 4c9b0f284bd973cf60611ac42d6dd49a3a100a85 Mon Sep 17 00:00:00 2001 From: Alexey Bodanyuk <144894236+wfa22@users.noreply.github.com> Date: Sat, 28 Nov 2026 01:51:41 +0300 Subject: [PATCH] =?UTF-8?q?restart.sh:=20=D0=BE=D0=B4=D0=B8=D0=BD=20docker?= =?UTF-8?q?=20compose=20start=20=D0=B4=D0=BB=D1=8F=20api/relay/worker/lb?= =?UTF-8?q?=20(=D1=83=D0=BA=D0=BB=D0=B0=D0=B4=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=B2=2090=20=D1=81=20=D1=82=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/restart.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/restart.sh b/scripts/restart.sh index 16b53c9..ad08ece 100644 --- a/scripts/restart.sh +++ b/scripts/restart.sh @@ -18,9 +18,9 @@ docker compose stop lb api relay worker docker compose restart postgres valkey s3 broker openbao # 3. Operator: unseal (OpenBao is sealed after every start). "$PY" scripts/bao_operator.py unseal -# 4. API replicas (log in to OpenBao again, read their secrets), the LB, then relay and worker. -# HAProxy resolves the new replica addresses through Docker DNS by itself. -docker compose start api -docker compose start lb -docker compose start relay worker +# 4. API replicas (log in to OpenBao again, read their secrets), relay, worker and the LB in ONE +# command: compose starts them in dependency order (lb after api is healthy) and waits for the +# health conditions once, relay/worker in parallel with api (three separate `start` calls cost +# 3 x ~23 s on Windows and exceeded the test's 90 s budget). HAProxy re-resolves the replicas. +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"