[S14P31B106-363] k8s 자원 수정#192
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (17)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📌 개요
런타임에서 발생하던 오류들을 수정하고, 로컬 개발 환경을 운영(K8s)과 동일한
KIS 실시간 게이트웨이 구조로 정렬했습니다. 더불어 그 과정에서 발견한 KIS 승인키
무효화 storm 을 자동 복구하도록 보강하고, 단일 노드 K3s 의 빌드/자원 비효율을
개선했습니다.
✨ 주요 변경 사항
[BE]
published_at의T/공백 구분자 혼재로 인한DateTimeParseException방어 (NewsResponse 가 두 포맷 모두 허용)invalid approval자동 복구 (게이트웨이 경로) — 무효 승인키를만료 전까지 재사용해 1초 간격 reconnect storm 이 나던 문제. 거부 감지 시 승인키
evict + 세션 재생성(새 키), per-user 60초 쿨다운으로 권한/충돌 시 storm 차단
[FE]
getPortfolioimport 추가[INFRA]
(gateway 프로파일) + backend
MARKET_FEED_CLIENT_MODE=REMOTEbuild 에 레지스트리 레이어 캐시(
--cache-from :latest+BUILDKIT_INLINE_CACHE=1)옵션(MaxRAMPercentage/SerialGC) + startupProbe 30→40, candle-collector CPU 감축,
kafka heap 고정·mem 다이어트, postgres mem request 축소 (replicas/브로커 개수 유지)
🔍 관련 이슈
🙏 To Reviewers
KisRealtimeUpstreamClient의 evict+복구 패턴을사용자별 경로(
UserKisSession/UserKisSessionPool)에 이식한 것입니다.이번 패치는 게이트웨이 경로 한정(LOCAL 모드
KisExecutionWebSocketClient는현 REMOTE 환경에서 비활성이라 후속 분리).
right-sizing 으로만 메모리 요청 82%→~70% 확보 + backend 부팅 CPU 보장입니다.
RestClientConfig의[KIS-WIRE]디버그 인터셉터가 /oauth2/Approval 요청의appkey/secretkey 를 평문 로깅 중 — 제거/마스킹 후속 필요.
🔗 문서
🧪 테스트 방법
docker compose up -d --build backend kis-gatewaysession started/execution cipher initialized(체결통보 구독 성공)/
invalid approval·subscribe rejected0건 확인GET /api/v1/markets/stocks/016880/news→ 500 없이 200getPortfolio is not defined없음📸 스크린샷/동작 확인
✅ 체크리스트
(backend=RollingUpdate 무중단, candle-collector/kafka=순차, postgres=Recreate 로
잠깐 DB 다운). DB 다운이 부담이면 backend+analysis 먼저, kafka/postgres 는 한가한
시간에 분리 적용 권장.
:latest이미지에 inline cache 가 없어, 이 변경 머지 직후첫 빌드는 캐시 미스로 여전히 느리고 2회차부터 빨라집니다.
🤖 Generated with Claude Code