feat: implement lab3 load balancing and idempotency

This commit is contained in:
Fedoroff
2026-10-27 20:34:22 +03:00
parent 0ab3a341aa
commit 35ae6f722e
43 changed files with 3045 additions and 42 deletions
+4
View File
@@ -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 }