Skip to content

Commit 727184b

Browse files
committed
fix: limit HikariCP pool size in prod to prevent Too many connections
1 parent 37eaaec commit 727184b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/resources/application-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ spring:
88
# 배치 Job + 일반 HTTP 요청 동시 처리를 위해 기본값(10)보다 상향
99
# RDS db.t3.micro 최대 Connection 수(~66) 대비 여유 확보
1010
maximum-pool-size: 20
11+
minimum-idle: 2
1112
connection-timeout: 30000 # 30초 초과 시 예외
1213
idle-timeout: 600000 # 10분 유휴 후 반환
1314
max-lifetime: 1800000 # 30분 후 강제 재생성

0 commit comments

Comments
 (0)