Skip to content

Commit

Permalink
๐Ÿ“ docs : yml datasource ์ˆ˜์ • merge
Browse files Browse the repository at this point in the history
๐Ÿ“ docs : yml datasource ์ˆ˜์ • #559
  • Loading branch information
hobeen-kim authored Oct 19, 2023
2 parents 913344e + 3611589 commit 2b4329f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ spring:
enabled: true
path: /h2
datasource:
hikari:
jdbc-url: url
connectionTimeout: 30000 # 30์ดˆ๋ฅผ ๋œปํ•จ. ํด๋ผ์ด์–ธํŠธ๊ฐ€ pool์— connection ์„ ์š”์ฒญํ•˜๋Š”๋ฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ตœ๋Œ€์‹œ๊ฐ„
maximumPoolSize: 40 # ์œ ํœด ๋ฐ ์‚ฌ์šฉ์ค‘์ธ connection์„ ํฌํ•จํ•˜์—ฌ ํ’€์— ๋ณด๊ด€๊ฐ€๋Šฅํ•œ ์ตœ๋Œ€ ์ปค๋„ฅ์…˜ ๊ฐœ์ˆ˜
maxLifetime: 1800000 # 30๋ถ„์„ ๋œปํ•จ. connection์˜ ์ตœ๋Œ€ ์œ ์ง€ ์‹œ๊ฐ„์„ ์„ค์ •
poolName: HikariCP
readOnly: false # pool์—์„œ ์–ป์€ connection์ด ๊ธฐ๋ณธ์ ์œผ๋กœ readOnly์ธ์ง€ ์ง€์ •ํ•˜๋Š” ์„ค์ •, ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๊ฐ€ readOnly ์†์„ฑ์„ ์ง€์›ํ•  ๊ฒฝ์šฐ์—๋งŒ ์‚ฌ์šฉ๊ฐ€๋Šฅ
url: jdbc:h2:mem:test
driver-class-name: org.h2.Driver
jpa:
Expand Down Expand Up @@ -102,6 +95,8 @@ spring:
activate:
on-profile: prod
datasource:
hikari:
maximumPoolSize: 40 # ์œ ํœด ๋ฐ ์‚ฌ์šฉ์ค‘์ธ connection์„ ํฌํ•จํ•˜์—ฌ ํ’€์— ๋ณด๊ด€๊ฐ€๋Šฅํ•œ ์ตœ๋Œ€ ์ปค๋„ฅ์…˜ ๊ฐœ์ˆ˜
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://sixman-rds.c2bhjqsi4ogs.ap-northeast-2.rds.amazonaws.com/sixmandb?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul
jpa:
Expand All @@ -122,4 +117,4 @@ decorator:
enable-logging: false

warmup:
is-completed: false
is-completed: true

0 comments on commit 2b4329f

Please sign in to comment.