Skip to content

Commit

Permalink
chore: Hikari minimum-idle 설정 추가 #369
Browse files Browse the repository at this point in the history
  • Loading branch information
jhon3242 committed Oct 24, 2024
1 parent 683aa2a commit 0ad53ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ spring:
url: jdbc:mysql://${secret.datasource.url}:${secret.datasource.port}/${secret.datasource.database}?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&autoReconnect=true&serverTimezone=Asia/Seoul&useLegacyDatetimeCode=false
username: ${secret.datasource.username}
password: ${secret.datasource.password}
hikari:
minimum-idle: ${secret.datasource.hikari.minimum-idle}

jpa:
defer-datasource-initialization: true
Expand Down
7 changes: 7 additions & 0 deletions backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ spring:
username: ${secret.datasource.source.username}
password: ${secret.datasource.source.password}
jdbc-url: jdbc:mysql://${secret.datasource.source.host}:${secret.datasource.source.port}/${secret.datasource.database}?serverTimezone=Asia/Seoul&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&useSSL=false
hikari:
minimum-idle: ${secret.datasource.hikari.minimum-idle}


replica:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${secret.datasource.replica.username}
password: ${secret.datasource.replica.password}
jdbc-url: jdbc:mysql://${secret.datasource.replica.host}:${secret.datasource.replica.port}/${secret.datasource.database}?serverTimezone=Asia/Seoul&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&useSSL=false
hikari:
minimum-idle: ${secret.datasource.hikari.minimum-idle}


sql:
init:
Expand Down

0 comments on commit 0ad53ce

Please sign in to comment.