V1 최적화#13
Merged
Merged
Conversation
- docker-compose.prod.yml: App만 남기고 DB/모니터링 제거 (Cloud DB 사용) - deploy.yml: v1/optimization 브랜치 트리거, 단일 앱 서버 + 모니터링 서버 배포 - application-prod.yml: Grafana용 application 메트릭 태그 추가 - monitoring/docker-compose.yml: 모니터링 서버용 Prometheus + Grafana 구성 - README.md: V1-c 최적화 계획 (Phase 6-7) 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- DealRepositoryCustomImpl: Deal + Product JOIN + Stock LEFT JOIN으로 1개 쿼리로 조회 - DealService.getDeals(): findAll() + N+1 루프 → findDealsWithStock() 변경 - 22개 쿼리(딜 10개 기준) → 2개 쿼리로 감소 - application-prod.yml: show-sql/format_sql 활성화, 스케줄러 비활성화 (쿼리 분석용) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- DealRepositoryCustomImpl.findDealWithStock(): Deal + Product + Stock JOIN으로 1개 쿼리로 조회 - DealService.getDeal(): findById() + LAZY 로딩 3개 쿼리 → findDealWithStock() 1개 쿼리로 변경 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Tomcat threads.max: 200 → 50 (2코어 CPU 컨텍스트 스위칭 감소) - Tomcat accept-count: 100 → 50 - HikariCP minimum-idle: 10 → 5 (유휴 커넥션 절약) - HikariCP connection-timeout: 30s → 3s (빠른 실패) - show-sql/format_sql 비활성화 (부하 테스트 준비) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Tomcat threads.max: 50 → 100 (50은 500명 동시 요청에 부족) - Tomcat accept-count: 50 → 100 - HikariCP connection-timeout: 3s → 10s (3초는 너무 공격적, 155건 타임아웃 발생) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- N+1 해결 효과를 정확히 측정하기 위해 튜닝 설정 제거 - 한 번에 하나의 변수만 변경하여 효과 측정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Deal 엔티티에 idx_deals_created_at 인덱스 추가 (full table scan, filesort 제거) - DealService.getDeals() JOIN 코드로 복원 - HikariCP pool size 30 설정 추가 (커넥션 풀 병목 검증용) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- DealService: N+1 원본 코드로 복원 - Deal 엔티티: created_at 인덱스 제거 - HikariCP: pool size 30 제거 (기본값 10) - 스케줄러: 테스트 정확성을 위해 비활성화 유지 - 비관적 락: 유지 (실제 서비스 로직) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 딜 목록/상세 조회에 Cache-Aside 전략 적용 (TTL 5초) - 딜 생성 시 목록 캐시 무효화 (@CacheEvict) - 딜 상세 조회 QueryDSL JOIN으로 변경 (3개 → 1개 쿼리) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.