Skip to content

Commit

Permalink
fet: hikariCP config 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jul 10, 2024
1 parent 1660784 commit e2b9994
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion api-repo/src/main/resources/application-api-repo-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ spring:
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: HikariCP
minimum-idle: 4
maximum-pool-size: 16
connection-timeout: 30000 # 30 seconds
idle-timeout: 300000 # 5 minutes
max-lifetime: 1800000 # 30 minutes
connection-test-query: SELECT 1
flyway:
locations: classpath:db/migration/entity
sql-migration-suffixes: sql
baseline-on-migrate: true
baseline-version: 0
baseline-version: 0
10 changes: 9 additions & 1 deletion api-repo/src/main/resources/application-api-repo-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ spring:
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: HikariCP
minimum-idle: 4
maximum-pool-size: 16
connection-timeout: 30000 # 30 seconds
idle-timeout: 300000 # 5 minutes
max-lifetime: 1800000 # 30 minutes
connection-test-query: SELECT 1
flyway:
locations: classpath:db/migration/entity
sql-migration-suffixes: sql
baseline-on-migrate: true
baseline-version: 0
baseline-version: 0

0 comments on commit e2b9994

Please sign in to comment.