-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yml
More file actions
63 lines (48 loc) · 1.85 KB
/
config.yml
File metadata and controls
63 lines (48 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
server:
rootPath: /api/
logging:
level: INFO
loggers:
com.github.stantonk: DEBUG
#metrics:
# reporters:
# - type: graphite
# durationUnit: milliseconds
# rateUnit: seconds
# useRegexFilters: false
# # set this to 1 minute (or longer) in production; dropwizard-metrics handles pre-aggregation
# # rendering statsd unnecessary -- provided you don't abuse graphite by sending too frequently
# frequency: 5 seconds
# port: 20003
# prefix: demoservice
# how to do environment variables
# mySetting: ${DW_MY_SETTING}
# defaultSetting: ${DW_DEFAULT_SETTING:-default value}
database:
# the name of your JDBC driver
driverClass: com.mysql.cj.jdbc.Driver
user: app
password: app
url: jdbc:mysql://${DB_IP:-localhost}:3306/app
# any properties specific to your JDBC driver:
properties:
charSet: UTF-8
# the maximum amount of time to wait on an empty pool before throwing an exception
maxWaitForConnection: 1s
# the SQL query to run when validating a connection's liveness
validationQuery: "/* MyService Health Check */ SELECT 1"
# the timeout before a connection validation queries fail
validationQueryTimeout: 3s
# the minimum number of connections to keep open
minSize: 8
# the maximum number of connections to keep open
maxSize: 32
# whether or not idle connections should be validated
checkConnectionWhileIdle: false
# the amount of time to sleep between runs of the idle connection validation, abandoned cleaner and idle pool resizing
evictionInterval: 10s
# the minimum amount of time an connection must sit idle in the pool before it is eligible for eviction
minIdleTime: 1 minute
# validate a SQL connection is viable before borrowing from the pool
# this is rather *critical* if you want your service to recover loss of connectivity to the db
checkConnectionOnBorrow: true