Skip to content

Commit

Permalink
[BE] 📝 docs : yml 파일 수정 (thread : 100, hikariCP : 40) merge
Browse files Browse the repository at this point in the history
[BE] 📝 docs : yml 파일 수정 (thread : 100, hikariCP : 40) #559
  • Loading branch information
hobeen-kim authored Oct 19, 2023
2 parents 0386f78 + 65c9dce commit 913344e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion Server/src/main/java/com/server/ServerApplication.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.server;

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
Expand Down
18 changes: 17 additions & 1 deletion Server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ 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 @@ -68,6 +75,15 @@ jwt:
expiration: 1209600000
header: Refresh

server:
tomcat:
threads:
max: 100
min-spare: 20
max-connections: 8192
accept-count: 100
connection-timeout: 20000

# p6spy ?? ??
decorator:
datasource:
Expand Down Expand Up @@ -106,4 +122,4 @@ decorator:
enable-logging: false

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

0 comments on commit 913344e

Please sign in to comment.