Allow changing the checkConnectionWhileIdle flag for api
Change-Id: I5c2f17577a13b74049aa7fb58b7d08306a9ffa12
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user