Skip to content

Commit

Permalink
Improved mysql defaults for voms-aa
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaceccanti committed Nov 30, 2021
1 parent 19fe791 commit 069895d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions iam-voms-aa/src/main/resources/application-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@

spring:
datasource:
dataSourceClassName: com.mysql.jdbc.jdbc2.optional.MysqlDataSource

url: jdbc:mysql://${IAM_DB_HOST:dev.local.io}:${IAM_DB_PORT:3306}/${IAM_DB_NAME:iam}
username: ${IAM_DB_USERNAME:iam}
password: ${IAM_DB_PASSWORD:pwd}
max-active: ${IAM_DB_MAX_ACTIVE:100}
max-idle: ${IAM_DB_MAX_IDLE:5}
initial-size: ${IAM_DB_INITIAL_SIZE:1}
test-while-idle: ${IAM_DB_TEST_WHILE_IDLE:true}
test-on-borrow: ${IAM_DB_TEST_ON_BORROW:true}
validation-query: ${IAM_DB_VALIDATION_QUERY:SELECT 1}
time-between-eviction-runs-millis: ${IAM_DB_TIME_BETWEEN_EVICTION_RUNS_MILLIS:5000}
min-evictable-idle-time-millis: ${IAM_DB_MIN_EVICTABLE_IDLE_TIME_MILLIS:60000}

hikari:
maximum-pool-size: ${IAM_DB_MAX_ACTIVE:100}
connection-test-query: ${IAM_DB_VALIDATION_QUERY:SELECT 1}


flyway:
enabled: false
2 changes: 1 addition & 1 deletion iam-voms-aa/src/main/resources/application-voms-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
server:
address: 0.0.0.0
port: 8080
use-forward-headers: true
forward-headers-strategy: native

spring:
main:
Expand Down

0 comments on commit 069895d

Please sign in to comment.