Merged
Conversation
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.
========================================
HikariCP Connection Pool (부하 테스트 대응)
========================================
근거:
- 50팀 동시 접속 시나리오 (카운트다운 종료 직후)
- 각 요청당 1개 DB 연결 필요
설정:
- maximum-pool-size=50: 최대 50개 DB 연결
- minimum-idle=10: 평상시 10개 연결 유지
- connection-timeout=30000: 연결 대기 최대 30초
spring.datasource.hikari.maximum-pool-size=50
spring.datasource.hikari.minimum-idle=10
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.idle-timeout=600000
spring.datasource.hikari.max-lifetime=1800000
========================================
Tomcat Thread Pool (동시 요청 처리)
========================================
근거:
- 50팀 + 여유분 고려
- Spring Boot 기본값: 200 threads
설정:
- max=200: 최대 200개 스레드
- min-spare=10: 최소 10개 스레드 유지
- accept-count=100: 대기열 크기
- max-connections=10000: 최대 연결 수
server.tomcat.threads.max=200
server.tomcat.threads.min-spare=10
server.tomcat.accept-count=100
server.tomcat.max-connections=10000