pe_databases
: Tuning, maintenance for PE PostgreSQL.pe_databases::pg_repack
: Provides systemd timers to pg_repack tables in the pe-puppetdb databasepe_databases::postgresql_settings
: Tune PostgreSQL settingspe_databases::postgresql_settings::table_settings
: Tune PostgreSQL table settings
pe_databases::collect
: Create systemd units for repacking a given database typepe_databases::set_puppetdb_table_autovacuum_cost_delay_zero
: Defined type for PostgreSQL autovacuum_cost_delaype_databases::set_table_attribute
: Defined type for PostgreSQL table attributes
reset_pgrepack_schema
: This task will remove and recreate the pg_repack extension
Tuning, maintenance for PE PostgreSQL.
The following parameters are available in the pe_databases
class:
disable_maintenance
manage_postgresql_settings
manage_table_settings
install_dir
scripts_dir
manage_database_maintenance
Data type: Boolean
true or false (Default: false) Disable or enable maintenance mode
Default value: lookup('pe_databases::disable_maintenance', {'default_value' => false})
Data type: Boolean
true or false (Default: true) Manage PostgreSQL settings
Default value: true
Data type: Boolean
true or false (Default: false) Manage table settings
Default value: false
Data type: String
Directory to install module into (Default: "/opt/puppetlabs/pe_databases")
Default value: '/opt/puppetlabs/pe_databases'
Data type: String
Directory to install scripts into (Default: "${install_dir}/scripts")
Default value: "${install_dir}/scripts"
Data type: Boolean
Default value: true
Maintenance pg_repack
The following parameters are available in the pe_databases::pg_repack
class:
Data type: Boolean
true or false (Default: false) Disable or enable maintenance mode
Default value: false
Data type: Integer
How many jobs to run in parallel
Default value: /
Tune PostgreSQL
The following parameters are available in the pe_databases::postgresql_settings
class:
maintenance_work_mem
work_mem
autovacumn_work_mem
autovacuum_max_workers
autovacuum_vacuum_scale_factor
autovacuum_analyze_scale_factor
log_autovacuum_min_duration
log_temp_files
max_connections
arbitrary_postgresql_conf_settings
checkpoint_completion_target
checkpoint_segments
manage_postgresql_service
all_in_one_pe_install
manage_reports_autovacuum_cost_delay
factsets_autovacuum_vacuum_scale_factor
reports_autovacuum_vacuum_scale_factor
autovacuum_work_mem
psql_version
Data type: String
Increase to improve speed of speed of vacuuming and reindexing (Example "1GB")
Default value: $all_in_one_pe_install
Data type: String
Allows PostgreSQL to do larger in-memory sorts (Default: "4MB")
Default value: '8MB'
Data type: String
Similar to but for maintenance_work_mem autovacuum processes only (Example "256MB")
Data type: Integer
Maximum number of autovacuum processes to run concurrently (Default: 3)
Default value: max(3, min(8, $facts['processors']['count'] / 3))
Data type: Float[0,1]
Default value: 0.08
Data type: Float[0,1]
Default value: 0.04
Data type: Integer
Default value: -
Data type: Integer
Default value: -
Data type: Integer
Default value: 1000
Data type: Hash
Default value: {}
Data type: Float[0,1]
Default value: 0.9
Data type: Integer
Default value: 128
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Optional[Float[0,1]]
Default value: 0.80
Data type: Optional[Float[0,1]]
Default value: 0.01
Data type: String
Default value: $all_in_one_pe_install
Data type: String
Default value: $pe_databases::psql_version
Tune PostgreSQL table settings
The following parameters are available in the pe_databases::postgresql_settings::table_settings
class:
manage_reports_autovacuum_cost_delay
factsets_autovacuum_vacuum_scale_factor
reports_autovacuum_vacuum_scale_factor
catalogs_autovacuum_vacuum_scale_factor
certnames_autovacuum_vacuum_scale_factor
Data type: Boolean
Default value: lookup('pe_databases::postgresql_settings::manage_reports_autovacuum_cost_delay', {'default_value' => true})
Data type: Optional[Float[0,1]]
Default value: lookup('pe_databases::postgresql_settings::factsets_autovacuum_vacuum_scale_factor', {'default_value' => 0.80})
Data type: Optional[Float[0,1]]
Default value: lookup('pe_databases::postgresql_settings::reports_autovacuum_vacuum_scale_factor', {'default_value' => 0.01})
Data type: Optional[Float[0,1]]
Default value: 0.75
Data type: Optional[Float[0,1]]
Default value: 0.75
Create systemd units for repacking a given database type
The following parameters are available in the pe_databases::collect
defined type:
Data type: String
The database to repack, uses titles from pg_repack.pp
Default value: $title
Data type: String
defined in pg_repack.pp
Default value: undef
Data type: Boolean
to disable maintenance mode (Default: false)
Default value: false
Data type: String
values can be found in pg_repack.pp
Default value: undef
Defined type for PostgreSQL autovacuum_cost_delay
The following parameters are available in the pe_databases::set_puppetdb_table_autovacuum_cost_delay_zero
defined type:
Data type: String
Name of the table
Default value: $title
Defined type for PostgreSQL table attributes
The following parameters are available in the pe_databases::set_table_attribute
defined type:
Data type: String
Name of the database, this is pe-puppetdb for the uses of this module.
Data type: String
Name of the table in the database.
Data type: String
Set to the table attribute value.
Data type: String
Value of setting for the table set in table_settings.pp
Type: Puppet Language
The pe_databases::version_based_databases function.
The pe_databases::version_based_databases function.
Returns: Array[String]
This task will remove and recreate the pg_repack extension
Supports noop? false