Allow changing the checkConnectionWhileIdle flag for api

Change-Id: I5c2f17577a13b74049aa7fb58b7d08306a9ffa12
This commit is contained in:
bklei
2015-08-11 10:18:31 -06:00
parent 62cf0fbe3c
commit d4c70c2303
2 changed files with 22 additions and 18 deletions

View File

@@ -10,6 +10,9 @@
# [*blobmirror*]
# url of server to install debians from
#
# [*check_conn_while_idle*]
# flag for whether db connection should stay alive while idle
#
# [*database_type*]
# type of database backend, influxdb or vertica
#
@@ -55,6 +58,7 @@
class monasca::api (
$api_user = 'monasca_api',
$blobmirror = undef,
$check_conn_while_idle = true,
$database_type = 'influxdb',
$database_host = 'localhost',
$db_admin_password = undef,

View File

@@ -24,7 +24,7 @@ mysql:
validationQuery: "/* MyService Health Check */ SELECT 1"
minSize: 8
maxSize: 32
checkConnectionWhileIdle: false
checkConnectionWhileIdle: <%= check_conn_while_idle %>
checkConnectionOnBorrow: true
databaseConfiguration:
@@ -49,7 +49,7 @@ vertica:
validationQuery: "/* MyService Health Check */ SELECT 1"
minSize: 4
maxSize: 32
checkConnectionWhileIdle: false
checkConnectionWhileIdle: <%= check_conn_while_idle %>
middleware:
enabled: true