forked from data61/gnaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.conf
33 lines (28 loc) · 1.03 KB
/
application.conf
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
// not sure if we should move this to gnaf-common
gnafDb = {
connectionPool = HikariCP // this is the default
slickDriver = slick.driver.H2Driver
url = "jdbc:h2:file:~/gnaf" // ;max_memory_rows=100000 // requires db admin rights
driver = org.h2.Driver
// slickDriver = slick.driver.PostgresDriver
// url = "jdbc:postgresql://localhost/gnaf"
// driver = org.postgresql.Driver
readOnly = true
user = "READONLY"
password = "READONLY"
numThreads = 4
queueSize = 987654 // failed with ~1000, so Future callbacks must go on this queue too
maxConnections = 10 // 1 for each of above + 1 for each concurrently run Future + 2 spare
minConnections = 1
connectionTimeout = 10000
initializationFailFast = false
slickDriver = ${?GNAF_SLICK_DRIVER} // optional override by environment variable
url = ${?GNAF_JDBC_URL}
driver = ${?GNAF_JDBC_DRIVER}
user = ${?GNAF_JDBC_USER}
password = ${?GNAF_JDBC_PASSWORD}
}
gnafTest = {
sampleSize = 100
sampleSize = ${?GNAF_TEST_SAMPLE_SIZE}
}