Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #982 from zalando/revert-963-ARUHA-1952
Browse files Browse the repository at this point in the history
Revert hikari db pool
  • Loading branch information
adyach authored Nov 16, 2018
2 parents 3c3cadc + 37c3e4b commit d3a52d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ dependencies {
compile 'org.zalando.zmon:zmon-actuator:0.9.8'

// storage
compile ('org.springframework.boot:spring-boot-starter-jdbc') {
exclude module: "tomcat-jdbc"
}
compile 'com.zaxxer:HikariCP:3.2.0'
compile "org.springframework.boot:spring-boot-starter-jdbc"
compile 'org.postgresql:postgresql:42.2.5'

compile 'org.springframework.cloud:spring-cloud-starter-hystrix:1.4.5.RELEASE'
Expand Down
17 changes: 12 additions & 5 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ spring:
url: jdbc:postgresql://localhost:5432/local_nakadi_db
username: nakadi
password: nakadi
type: com.zaxxer.hikari.HikariDataSource
hikari:
connectionTimeout: 2000
minimumIdle: 1
maximumPoolSize: 2
driverClassName: org.postgresql.Driver
tomcat:
initial-size: 2
max-active: 2
min-idle: 1
max-idle: 1
test-on-borrow: true
validation-query: SELECT 1
test-while-idle: true
time-between-eviction-runs-millis: 5000
min-evictable-idle-time-millis: 60000
connection-properties: socketTimeout=2;connectTimeout=2;loginTimeout=2

hystrix.command.default.execution.isolation.strategy: SEMAPHORE
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 15000
Expand Down

0 comments on commit d3a52d4

Please sign in to comment.