ЛР3: балансировка API и отказоустойчивость

This commit is contained in:
2026-11-04 17:17:44 +03:00
parent 0ab3a341aa
commit 9633b6e5c0
32 changed files with 1174 additions and 38 deletions
+10
View File
@@ -0,0 +1,10 @@
@echo off
setlocal
cd /d "%~dp0.."
if /I "%TARGET_INSTANCE_ID%"=="api1" goto stop
if /I "%TARGET_INSTANCE_ID%"=="api2" goto stop
echo Invalid TARGET_INSTANCE_ID; refusing to stop an arbitrary service 1>&2
exit /b 2
:stop
docker compose --env-file .env stop -t 2 %TARGET_INSTANCE_ID%
exit /b %ERRORLEVEL%