forked from mtusi2026/mtusi2026lab7
restart.sh: один docker compose start для api/relay/worker/lb (укладывается в 90 с теста)
This commit is contained in:
+5
-5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user