Implement lab3 load balancing and idempotent messaging

This commit is contained in:
ferraronp
2026-11-06 18:57:11 +03:00
parent 0ab3a341aa
commit 303c60e2e1
27 changed files with 1133 additions and 33 deletions
+11
View File
@@ -0,0 +1,11 @@
@echo off
setlocal
cd /d "%~dp0.."
docker compose --env-file .env stop --timeout 5 lb api1 api2 redis postgres
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --wait postgres redis
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --no-deps api1 api2 lb
if errorlevel 1 exit /b 1
python scripts\wait_ready.py
exit /b %ERRORLEVEL%