Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ spring:
password: ${POSTGRESQL_PW}
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 100
Copy link
Copy Markdown
Contributor

@Raemerrr Raemerrr Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오우.. 다른 시간 값은 늘려보면 좋을 것 같은데요.
요 커넥션 pool이 100이면 높은 편인 것 같은데

기존 30을 유지하는 건 어떨까요..?


근데 100이던 30이던 명확한 근거를 제시할 순 없어서 뭐라 코멘트 달기가 애매하네요 ㅎㅎ;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postgresql audit log를 보면서 부족하면
값을 추가하는 식도 괜찮을 것 같아요.

minimum-idle: 10
maximum-pool-size: 30
idle-timeout: 30000 # 5분
connection-timeout: 20000 # 30초
max-lifetime: 1800000 # 30분
idle-timeout: 300000 # 5분
max-lifetime: 900000 # 15분
connection-timeout: 20000 # 20초
validation-timeout: 5000 # 5초
leak-detection-threshold: 20000 # 20초
jpa:
hibernate:
ddl-auto: none
Expand Down
10 changes: 6 additions & 4 deletions infra/src/main/resources/application-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ spring:
password: ${POSTGRESQL_PW}
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 100
minimum-idle: 10
maximum-pool-size: 30
idle-timeout: 30000 # 5분
connection-timeout: 20000 # 30초
max-lifetime: 1800000 # 30분
idle-timeout: 300000 # 5분
max-lifetime: 900000 # 15분
connection-timeout: 20000 # 20초
validation-timeout: 5000 # 5초
leak-detection-threshold: 20000 # 20초
jpa:
hibernate:
ddl-auto: none
Expand Down