forked from mtusi2026/mtusi2026lab4
Implement lab4 attachments on RustFS for grade 4.
Carry over lab3 HA stack and add private S3 storage, Attachment API, orphan compensation/reaper, own tests, and evidence for smoke/persistence/failover.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0.."
|
||||
if "%TARGET_INSTANCE_ID%"=="" (
|
||||
echo TARGET_INSTANCE_ID required 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
for /f %%i in ('docker compose --env-file .env ps -q api') do (
|
||||
for /f %%h in ('docker inspect -f "{{.Config.Hostname}}" %%i') do (
|
||||
if "%%h"=="%TARGET_INSTANCE_ID%" (
|
||||
docker stop %%i >nul
|
||||
exit /b 0
|
||||
)
|
||||
)
|
||||
)
|
||||
echo API replica not found for TARGET_INSTANCE_ID 1>&2
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user