Skip to content

[Deploy] PostgreSQL·AI Runtime 기반 데모 배포 구성 #9

Description

@hywznn

한 줄 목표

시연자 PC의 LM Studio 없이 Spring Boot Server + PostgreSQL + 별도 AI Runtime을 재현 가능한 HTTPS demo 환경에 연결합니다.

배포 구조

Client → Spring Boot Server → PostgreSQL
                  │
                  └→ AI Runtime → External LLM API / Cloud Endpoint
                           └→ pinned Knowledge Bundle

Server image에는 LLM Provider SDK와 API Key를 넣지 않습니다. Server는 AI Runtime base URL과 service credential만 압니다.

Server 저장소 구현 범위

  • multi-stage Dockerfile, non-root user, health check
  • local integration용 Compose: Server + PostgreSQL + 선택적 AI Runtime URL
  • prod profile, Flyway validate, connection pool 제한
  • Actuator liveness/readiness와 공개 /health 분리
  • AI_RUNTIME_BASE_URL, service credential, timeout/concurrency, required contract/knowledge version 구성
  • AI Runtime 장애를 readiness 전체 실패가 아닌 degraded dependency로 관측
  • HTTPS, 최소 CORS origin, secret injection
  • AiRun/outbox의 application restart 복구 확인
  • image rollback과 forward-compatible migration 절차
  • 배포 후 Smoke와 수동 처리 runbook

설정 소유권

설정 소유
DB URL/credential, JWT, CORS Server deployment
AI Runtime URL/service auth/deadline Server deployment
Provider API Key/model/prompt/agent AI Runtime deployment
Context Pack/Workflow Catalog bundle version Knowledge release, AI Runtime pin

Smoke 흐름

  1. /health와 DB readiness
  2. Login·tenant isolation
  3. POST /api/v1/ai-runs202 + aiRunId
  4. Server → AI Runtime contract/version 확인
  5. 후보 결정 → Task 검토·승인 → Worker Link → 응답·완료
  6. Server 재시작 뒤 미완료 Run/Event 복구
  7. AI Runtime timeout에서 가짜 후보 없이 수동 처리 가능

완료 조건

  • 깨끗한 환경에서 동일 image와 migration으로 실행됩니다.
  • LM Studio와 개발자 PC가 꺼져도 demo가 동작합니다.
  • Provider secret은 Server 환경·image·log에 없습니다.
  • AI Runtime 장애가 일반 HR API resource를 고갈시키지 않습니다.
  • HTTPS Product Smoke와 rollback rehearsal가 통과합니다.

경계 밖

관계

Metadata

Metadata

Labels

area:ai-integrationServer ↔ AI Runtime 내부 계약·Client·검증·trace 연동 영역; Prompt·모델·Provider 구현은 ai 저장소 소유area:infraServer Dockerfile·DB 설정·CI hook·배포 가능성 영역; 통합 인프라 운영은 infra 저장소와 조율priority:P0MVP 진행을 막는 최우선 핵심 작업security:privacy개인정보·접근권한·토큰·보안 영향이 있는 작업status:blocked선행 작업이나 외부 조건 때문에 현재 진행할 수 없는 작업type:integration외부 LLM·DB·스토리지 등 시스템 간 연동 작업

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions