add variable for idle session timeout
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
# @param [Boolean] pl_manage_extensions whether to manage extensions
|
# @param [Boolean] pl_manage_extensions whether to manage extensions
|
||||||
# @param [Boolean] pl_use_exporter whether to use the postgresql-exporter
|
# @param [Boolean] pl_use_exporter whether to use the postgresql-exporter
|
||||||
# @param [String] pl_install_dir the path for the postgres-exporter files
|
# @param [String] pl_install_dir the path for the postgres-exporter files
|
||||||
|
# @param [String] pl_idle_timeout idle_in_transaction_session_timeout
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class postgresql_cd::params (
|
class postgresql_cd::params (
|
||||||
|
|
||||||
@@ -45,6 +46,7 @@ class postgresql_cd::params (
|
|||||||
String $pl_listen_address = '*',
|
String $pl_listen_address = '*',
|
||||||
String $pl_listen_port = '5432',
|
String $pl_listen_port = '5432',
|
||||||
String $pl_max_conn = '100',
|
String $pl_max_conn = '100',
|
||||||
|
String $pl_idle_timeout = '60000',
|
||||||
Boolean $pl_ssl_enabled = false,
|
Boolean $pl_ssl_enabled = false,
|
||||||
String $pl_server_crt = 'server.crt',
|
String $pl_server_crt = 'server.crt',
|
||||||
String $pl_server_key = 'server.key',
|
String $pl_server_key = 'server.key',
|
||||||
|
|||||||
@@ -674,7 +674,7 @@ log_timezone = 'Etc/UTC'
|
|||||||
#session_replication_role = 'origin'
|
#session_replication_role = 'origin'
|
||||||
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
|
idle_in_transaction_session_timeout = <%= @pl_idle_timeout %>
|
||||||
#vacuum_freeze_min_age = 50000000
|
#vacuum_freeze_min_age = 50000000
|
||||||
#vacuum_freeze_table_age = 150000000
|
#vacuum_freeze_table_age = 150000000
|
||||||
#vacuum_multixact_freeze_min_age = 5000000
|
#vacuum_multixact_freeze_min_age = 5000000
|
||||||
|
|||||||
Reference in New Issue
Block a user