forked from mtusi2026/mtusi2026lab3
feat: implement lab3 load balancing and idempotency
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
param([string]$Target = $env:TARGET_INSTANCE_ID)
|
||||
if ($Target -notin @('api1','api2')) { throw "TARGET_INSTANCE_ID must be api1 or api2" }
|
||||
docker compose --env-file .env stop -t 1 $Target
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
Reference in New Issue
Block a user