Initialize RTGS prototype repository

3센터 A-A-A RTGS 실시간총액결제 프로토타입 최초 버전관리 시작.
- backend: Kotlin/Gradle 멀티모듈(sequencer, common, 채널/센터 모듈)
- frontend: Vite + TS
- infra: docker-compose, prometheus/grafana, ELK 네이티브 스크립트
- loadtest(k6), sim(장애/순서/정합성 시나리오), docs(PoC 보고서/복원력방안)
This commit is contained in:
rtgs
2026-07-15 15:37:32 +09:00
commit 58ca23b5d9
140 changed files with 11832 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
@echo off
rem ===================================================================
rem 3센터 삼중화용 빈 DB 3개 생성 (rtgs_dc1/dc2/dc3). 멱등.
rem 스키마·시드는 각 센터 LouisVuitton 기동 시 Flyway가 담당(V1~V4).
rem 전제: PostgreSQL(:5433)이 이미 기동(start-infra-native 또는 run-dc1).
rem ===================================================================
call C:\ai-dev\scripts\env.cmd
set "PGBIN=%DEV_HOME%\apps\postgresql-16.4\bin"
for %%D in (rtgs_dc1 rtgs_dc2 rtgs_dc3) do (
"%PGBIN%\psql.exe" -h localhost -p 5433 -U rtgs -d postgres -tAc "SELECT 1 FROM pg_database WHERE datname='%%D'" | findstr "1" >nul
if errorlevel 1 (
echo [init-3c] creating empty db %%D ...
"%PGBIN%\createdb.exe" -h localhost -p 5433 -U rtgs %%D
) else (
echo [init-3c] db %%D already exists.
)
)
echo [init-3c] done. 각 센터 LouisVuitton이 기동 시 Flyway로 스키마 생성.