feat(3c): 3센터 A-A-A 기동 스크립트 + 인프라 멱등화

- run-3centers.cmd: 공유 인프라 + DC1(3c,순번기) + DC2/DC3 일괄 기동 오케스트레이터
- run-dc2/dc3: CHANEL_URL(자기 센터 Chanel 8191/8291) + RTGS_CONTROL_ENABLED=false
- start-infra-native: Kafka 9092 LISTENING이면 재기동 skip(중복 창 방지, 멱등)
- run-dt.cmd: 단말(DT) dev 서버 기동
- 전제: PostgreSQL max_connections>=300(19서비스 커넥션)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
rtgs
2026-07-16 17:33:27 +09:00
parent 5b706bfc33
commit d180d516cd
5 changed files with 59 additions and 2 deletions

View File

@@ -38,8 +38,14 @@ if not exist "%KDATA%\kraft-logs\meta.properties" (
for /f "delims=" %%i in ('%KAFKA%\bin\windows\kafka-storage.bat random-uuid') do set "CID=%%i"
"%KAFKA%\bin\windows\kafka-storage.bat" format -t %CID% -c "%KDATA%\server.properties"
)
echo [infra] starting Kafka :9092 (new window; keep it open)...
start "RTGS Kafka :9092" cmd /k "%KAFKA%\bin\windows\kafka-server-start.bat %KDATA%\server.properties"
rem 멱등: 9092가 이미 LISTENING이면 재기동 안 함(중복 Kafka 창 방지 — run-3centers에서 두 번 호출돼도 안전).
netstat -ano | findstr ":9092" | findstr LISTENING >nul
if errorlevel 1 (
echo [infra] starting Kafka :9092 (new window; keep it open)...
start "RTGS Kafka :9092" cmd /k "%KAFKA%\bin\windows\kafka-server-start.bat %KDATA%\server.properties"
) else (
echo [infra] Kafka already running (:9092).
)
echo.
echo [infra] PostgreSQL :5433 (db rtgs), Kafka :9092 up. (MongoDB not used - docs in PostgreSQL)