Skip to content

Commit 13585ee

Browse files
authored
Merge pull request #357 from smokris/obsolete-database-config
Remove obsolete database config options
2 parents 143dc42 + 2ccdaa7 commit 13585ee

File tree

8 files changed

+0
-326
lines changed

8 files changed

+0
-326
lines changed

REFERENCE.md

-112
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ The following parameters are available in the `puppetdb` class:
9999
* [`facts_blacklist`](#-puppetdb--facts_blacklist)
100100
* [`gc_interval`](#-puppetdb--gc_interval)
101101
* [`node_purge_gc_batch_limit`](#-puppetdb--node_purge_gc_batch_limit)
102-
* [`log_slow_statements`](#-puppetdb--log_slow_statements)
103102
* [`conn_max_age`](#-puppetdb--conn_max_age)
104-
* [`conn_keep_alive`](#-puppetdb--conn_keep_alive)
105103
* [`conn_lifetime`](#-puppetdb--conn_lifetime)
106104
* [`puppetdb_package`](#-puppetdb--puppetdb_package)
107105
* [`puppetdb_service`](#-puppetdb--puppetdb_service)
@@ -122,9 +120,7 @@ The following parameters are available in the `puppetdb` class:
122120
* [`read_database_jdbc_ssl_properties`](#-puppetdb--read_database_jdbc_ssl_properties)
123121
* [`read_database_validate`](#-puppetdb--read_database_validate)
124122
* [`read_database_name`](#-puppetdb--read_database_name)
125-
* [`read_log_slow_statements`](#-puppetdb--read_log_slow_statements)
126123
* [`read_conn_max_age`](#-puppetdb--read_conn_max_age)
127-
* [`read_conn_keep_alive`](#-puppetdb--read_conn_keep_alive)
128124
* [`read_conn_lifetime`](#-puppetdb--read_conn_lifetime)
129125
* [`ssl_dir`](#-puppetdb--ssl_dir)
130126
* [`ssl_set_cert_paths`](#-puppetdb--ssl_set_cert_paths)
@@ -457,20 +453,6 @@ Nodes will be purged in batches of this size, one batch per gc-interval.
457453

458454
Default value: `$puppetdb::params::node_purge_gc_batch_limit`
459455

460-
##### <a name="-puppetdb--log_slow_statements"></a>`log_slow_statements`
461-
462-
Data type: `Any`
463-
464-
This sets the number of seconds before an SQL query is considered "slow." Slow
465-
SQL queries are logged as warnings, to assist in debugging and tuning. Note
466-
PuppetDB does not interrupt slow queries; it simply reports them after they
467-
complete.
468-
469-
The default value is `10` seconds. A value of 0 will disable logging of slow
470-
queries. This option is supported in PuppetDB >= 1.1.
471-
472-
Default value: `$puppetdb::params::log_slow_statements`
473-
474456
##### <a name="-puppetdb--conn_max_age"></a>`conn_max_age`
475457

476458
Data type: `Any`
@@ -482,18 +464,6 @@ If not supplied, we default to `60` minutes. This option is supported in PuppetD
482464

483465
Default value: `$puppetdb::params::conn_max_age`
484466

485-
##### <a name="-puppetdb--conn_keep_alive"></a>`conn_keep_alive`
486-
487-
Data type: `Any`
488-
489-
This sets the time (in minutes) for a connection to remain idle before sending
490-
a test query to the DB. This is useful to prevent a DB from timing out
491-
connections on its end.
492-
493-
If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.1.
494-
495-
Default value: `$puppetdb::params::conn_keep_alive`
496-
497467
##### <a name="-puppetdb--conn_lifetime"></a>`conn_lifetime`
498468

499469
Data type: `Any`
@@ -690,20 +660,6 @@ the `database_name` parameter. This option is supported in PuppetDB >= 1.6.
690660

691661
Default value: `$puppetdb::params::read_database_name`
692662

693-
##### <a name="-puppetdb--read_log_slow_statements"></a>`read_log_slow_statements`
694-
695-
Data type: `Any`
696-
697-
This sets the number of seconds before an SQL query to the read database is
698-
considered "slow." Slow SQL queries are logged as warnings, to assist in
699-
debugging and tuning. Note PuppetDB does not interrupt slow queries; it simply
700-
reports them after they complete.
701-
702-
The default value is 10 seconds. A value of 0 will disable logging of slow
703-
queries. This option is supported in PuppetDB >= 1.6.
704-
705-
Default value: `$puppetdb::params::read_log_slow_statements`
706-
707663
##### <a name="-puppetdb--read_conn_max_age"></a>`read_conn_max_age`
708664

709665
Data type: `Any`
@@ -715,18 +671,6 @@ If not supplied, we default to 60 minutes. This option is supported in PuppetDB
715671

716672
Default value: `$puppetdb::params::read_conn_max_age`
717673

718-
##### <a name="-puppetdb--read_conn_keep_alive"></a>`read_conn_keep_alive`
719-
720-
Data type: `Any`
721-
722-
This sets the time (in minutes) for a read database connection to remain idle
723-
before sending a test query to the DB. This is useful to prevent a DB from
724-
timing out connections on its end.
725-
726-
If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.6.
727-
728-
Default value: `$puppetdb::params::read_conn_keep_alive`
729-
730674
##### <a name="-puppetdb--read_conn_lifetime"></a>`read_conn_lifetime`
731675

732676
Data type: `Any`
@@ -1427,9 +1371,7 @@ The following parameters are available in the `puppetdb::server` class:
14271371
* [`facts_blacklist`](#-puppetdb--server--facts_blacklist)
14281372
* [`gc_interval`](#-puppetdb--server--gc_interval)
14291373
* [`node_purge_gc_batch_limit`](#-puppetdb--server--node_purge_gc_batch_limit)
1430-
* [`log_slow_statements`](#-puppetdb--server--log_slow_statements)
14311374
* [`conn_max_age`](#-puppetdb--server--conn_max_age)
1432-
* [`conn_keep_alive`](#-puppetdb--server--conn_keep_alive)
14331375
* [`conn_lifetime`](#-puppetdb--server--conn_lifetime)
14341376
* [`puppetdb_package`](#-puppetdb--server--puppetdb_package)
14351377
* [`puppetdb_service`](#-puppetdb--server--puppetdb_service)
@@ -1449,9 +1391,7 @@ The following parameters are available in the `puppetdb::server` class:
14491391
* [`read_database_jdbc_ssl_properties`](#-puppetdb--server--read_database_jdbc_ssl_properties)
14501392
* [`read_database_validate`](#-puppetdb--server--read_database_validate)
14511393
* [`read_database_name`](#-puppetdb--server--read_database_name)
1452-
* [`read_log_slow_statements`](#-puppetdb--server--read_log_slow_statements)
14531394
* [`read_conn_max_age`](#-puppetdb--server--read_conn_max_age)
1454-
* [`read_conn_keep_alive`](#-puppetdb--server--read_conn_keep_alive)
14551395
* [`read_conn_lifetime`](#-puppetdb--server--read_conn_lifetime)
14561396
* [`ssl_dir`](#-puppetdb--server--ssl_dir)
14571397
* [`ssl_set_cert_paths`](#-puppetdb--server--ssl_set_cert_paths)
@@ -1715,20 +1655,6 @@ Nodes will be purged in batches of this size, one batch per gc-interval.
17151655

17161656
Default value: `$puppetdb::params::node_purge_gc_batch_limit`
17171657

1718-
##### <a name="-puppetdb--server--log_slow_statements"></a>`log_slow_statements`
1719-
1720-
Data type: `Any`
1721-
1722-
This sets the number of seconds before an SQL query is considered "slow." Slow
1723-
SQL queries are logged as warnings, to assist in debugging and tuning. Note
1724-
PuppetDB does not interrupt slow queries; it simply reports them after they
1725-
complete.
1726-
1727-
The default value is `10` seconds. A value of 0 will disable logging of slow
1728-
queries. This option is supported in PuppetDB >= 1.1.
1729-
1730-
Default value: `$puppetdb::params::log_slow_statements`
1731-
17321658
##### <a name="-puppetdb--server--conn_max_age"></a>`conn_max_age`
17331659

17341660
Data type: `Any`
@@ -1740,18 +1666,6 @@ If not supplied, we default to `60` minutes. This option is supported in PuppetD
17401666

17411667
Default value: `$puppetdb::params::conn_max_age`
17421668

1743-
##### <a name="-puppetdb--server--conn_keep_alive"></a>`conn_keep_alive`
1744-
1745-
Data type: `Any`
1746-
1747-
This sets the time (in minutes) for a connection to remain idle before sending
1748-
a test query to the DB. This is useful to prevent a DB from timing out
1749-
connections on its end.
1750-
1751-
If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.1.
1752-
1753-
Default value: `$puppetdb::params::conn_keep_alive`
1754-
17551669
##### <a name="-puppetdb--server--conn_lifetime"></a>`conn_lifetime`
17561670

17571671
Data type: `Any`
@@ -1940,20 +1854,6 @@ the `database_name` parameter. This option is supported in PuppetDB >= 1.6.
19401854

19411855
Default value: `$puppetdb::params::read_database_name`
19421856

1943-
##### <a name="-puppetdb--server--read_log_slow_statements"></a>`read_log_slow_statements`
1944-
1945-
Data type: `Any`
1946-
1947-
This sets the number of seconds before an SQL query to the read database is
1948-
considered "slow." Slow SQL queries are logged as warnings, to assist in
1949-
debugging and tuning. Note PuppetDB does not interrupt slow queries; it simply
1950-
reports them after they complete.
1951-
1952-
The default value is 10 seconds. A value of 0 will disable logging of slow
1953-
queries. This option is supported in PuppetDB >= 1.6.
1954-
1955-
Default value: `$puppetdb::params::read_log_slow_statements`
1956-
19571857
##### <a name="-puppetdb--server--read_conn_max_age"></a>`read_conn_max_age`
19581858

19591859
Data type: `Any`
@@ -1965,18 +1865,6 @@ If not supplied, we default to 60 minutes. This option is supported in PuppetDB
19651865

19661866
Default value: `$puppetdb::params::read_conn_max_age`
19671867

1968-
##### <a name="-puppetdb--server--read_conn_keep_alive"></a>`read_conn_keep_alive`
1969-
1970-
Data type: `Any`
1971-
1972-
This sets the time (in minutes) for a read database connection to remain idle
1973-
before sending a test query to the DB. This is useful to prevent a DB from
1974-
timing out connections on its end.
1975-
1976-
If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.6.
1977-
1978-
Default value: `$puppetdb::params::read_conn_keep_alive`
1979-
19801868
##### <a name="-puppetdb--server--read_conn_lifetime"></a>`read_conn_lifetime`
19811869

19821870
Data type: `Any`

manifests/init.pp

-40
Original file line numberDiff line numberDiff line change
@@ -131,28 +131,12 @@
131131
# @param node_purge_gc_batch_limit
132132
# Nodes will be purged in batches of this size, one batch per gc-interval.
133133
#
134-
# @param log_slow_statements
135-
# This sets the number of seconds before an SQL query is considered "slow." Slow
136-
# SQL queries are logged as warnings, to assist in debugging and tuning. Note
137-
# PuppetDB does not interrupt slow queries; it simply reports them after they
138-
# complete.
139-
#
140-
# The default value is `10` seconds. A value of 0 will disable logging of slow
141-
# queries. This option is supported in PuppetDB >= 1.1.
142-
#
143134
# @param conn_max_age
144135
# The maximum time (in minutes) for a pooled connection to remain unused before
145136
# it is closed off.
146137
#
147138
# If not supplied, we default to `60` minutes. This option is supported in PuppetDB >= 1.1.
148139
#
149-
# @param conn_keep_alive
150-
# This sets the time (in minutes) for a connection to remain idle before sending
151-
# a test query to the DB. This is useful to prevent a DB from timing out
152-
# connections on its end.
153-
#
154-
# If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.1.
155-
#
156140
# @param conn_lifetime
157141
# The maximum time (in minutes) a pooled connection should remain open. Any
158142
# connections older than this setting will be closed off. Connections currently in
@@ -249,28 +233,12 @@
249233
# is set to `undef`, and `manage_database` is set to `true`, it will use the value of
250234
# the `database_name` parameter. This option is supported in PuppetDB >= 1.6.
251235
#
252-
# @param read_log_slow_statements
253-
# This sets the number of seconds before an SQL query to the read database is
254-
# considered "slow." Slow SQL queries are logged as warnings, to assist in
255-
# debugging and tuning. Note PuppetDB does not interrupt slow queries; it simply
256-
# reports them after they complete.
257-
#
258-
# The default value is 10 seconds. A value of 0 will disable logging of slow
259-
# queries. This option is supported in PuppetDB >= 1.6.
260-
#
261236
# @param read_conn_max_age
262237
# The maximum time (in minutes) for a pooled read database connection to remain
263238
# unused before it is closed off.
264239
#
265240
# If not supplied, we default to 60 minutes. This option is supported in PuppetDB >= 1.6.
266241
#
267-
# @param read_conn_keep_alive
268-
# This sets the time (in minutes) for a read database connection to remain idle
269-
# before sending a test query to the DB. This is useful to prevent a DB from
270-
# timing out connections on its end.
271-
#
272-
# If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.6.
273-
#
274242
# @param read_conn_lifetime
275243
# The maximum time (in minutes) a pooled read database connection should remain
276244
# open. Any connections older than this setting will be closed off. Connections
@@ -420,9 +388,7 @@
420388
Optional[Array] $facts_blacklist = $puppetdb::params::facts_blacklist,
421389
$gc_interval = $puppetdb::params::gc_interval,
422390
$node_purge_gc_batch_limit = $puppetdb::params::node_purge_gc_batch_limit,
423-
$log_slow_statements = $puppetdb::params::log_slow_statements,
424391
$conn_max_age = $puppetdb::params::conn_max_age,
425-
$conn_keep_alive = $puppetdb::params::conn_keep_alive,
426392
$conn_lifetime = $puppetdb::params::conn_lifetime,
427393
$puppetdb_package = $puppetdb::params::puppetdb_package,
428394
$puppetdb_service = $puppetdb::params::puppetdb_service,
@@ -438,9 +404,7 @@
438404
$manage_read_db_password = $puppetdb::params::manage_read_db_password,
439405
$read_database_jdbc_ssl_properties = $puppetdb::params::read_database_jdbc_ssl_properties,
440406
$read_database_validate = $puppetdb::params::read_database_validate,
441-
$read_log_slow_statements = $puppetdb::params::read_log_slow_statements,
442407
$read_conn_max_age = $puppetdb::params::read_conn_max_age,
443-
$read_conn_keep_alive = $puppetdb::params::read_conn_keep_alive,
444408
$read_conn_lifetime = $puppetdb::params::read_conn_lifetime,
445409
$confdir = $puppetdb::params::confdir,
446410
$vardir = $puppetdb::params::vardir,
@@ -499,9 +463,7 @@
499463
facts_blacklist => $facts_blacklist,
500464
gc_interval => $gc_interval,
501465
node_purge_gc_batch_limit => $node_purge_gc_batch_limit,
502-
log_slow_statements => $log_slow_statements,
503466
conn_max_age => $conn_max_age,
504-
conn_keep_alive => $conn_keep_alive,
505467
conn_lifetime => $conn_lifetime,
506468
puppetdb_package => $puppetdb_package,
507469
puppetdb_service => $puppetdb_service,
@@ -519,9 +481,7 @@
519481
manage_read_db_password => $manage_read_db_password,
520482
read_database_jdbc_ssl_properties => $read_database_jdbc_ssl_properties,
521483
read_database_validate => $read_database_validate,
522-
read_log_slow_statements => $read_log_slow_statements,
523484
read_conn_max_age => $read_conn_max_age,
524-
read_conn_keep_alive => $read_conn_keep_alive,
525485
read_conn_lifetime => $read_conn_lifetime,
526486
puppetdb_user => $puppetdb_user,
527487
puppetdb_group => $puppetdb_group,

manifests/params.pp

-4
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353
$gc_interval = '60'
5454
$node_purge_gc_batch_limit = '25'
5555

56-
$log_slow_statements = '10'
5756
$conn_max_age = '60'
58-
$conn_keep_alive = '45'
5957
$conn_lifetime = '0'
6058

6159
$max_threads = undef
@@ -70,9 +68,7 @@
7068
$manage_read_db_password = true
7169
$read_database_jdbc_ssl_properties = ''
7270
$read_database_validate = true
73-
$read_log_slow_statements = '10'
7471
$read_conn_max_age = '60'
75-
$read_conn_keep_alive = '45'
7672
$read_conn_lifetime = '0'
7773
$read_database_max_pool_size = undef
7874

0 commit comments

Comments
 (0)