pe_databases
: Tuning, maintenance for PE PostgreSQL.pe_databases::pg_repack
: Provides systemd timers to pg_repack tables in a given database
pe_databases::collect
: Create systemd units for repacking a given database type
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:
manage_database_maintenance
disable_maintenance
install_dir
scripts_dir
facts_tables_repack_timer
catalogs_tables_repack_timer
other_tables_repack_timer
activity_tables_repack_timer
manage_postgresql_settings
manage_table_settings
reports_tables_repack_timer
resource_events_tables_repack_timer
Data type: Boolean
true or false (Default: true) Manage the inclusion of the pg_repack class
Default value: true
Data type: Boolean
true or false (Default: false) Disable or enable maintenance mode
Default value: false
Data type: String[1]
Directory to install module into (Default: "/opt/puppetlabs/pe_databases")
Default value: '/opt/puppetlabs/pe_databases'
Data type: String[1]
Directory to install scripts into (Default: "${install_dir}/scripts")
Default value: "${install_dir}/scripts"
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'facts' tables
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'catalog' tables
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'other' tables
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'activity' tables
Data type: Optional[Boolean]
Deprecated Parameter will be removed in future releases
Default value: undef
Data type: Optional[Boolean]
Deprecated Parameter will be removed in future releases
Default value: undef
Data type: Optional[String]
Deprecated Parameter will be removed in future releases
Default value: undef
Data type: Optional[String]
Deprecated Parameter will be removed in future releases
Default value: undef
Maintenance pg_repack
The following parameters are available in the pe_databases::pg_repack
class:
fact_tables
catalog_tables
other_tables
activity_tables
disable_maintenance
repack_log_level
enable_echo
jobs
facts_tables_repack_timer
catalogs_tables_repack_timer
other_tables_repack_timer
activity_tables_repack_timer
reports_tables_repack_timer
resource_events_tables_repack_timer
Data type: Array
Array of 'fact' tables to repack
Data type: Array
Array of 'catalog' tables to repack
Data type: Array
Array of 'other' tables to repack
Data type: Array
Array of 'activity' tables to repack
Data type: Boolean
true or false (Default: false) Disable or enable maintenance mode
Default value: false
Data type: Enum['INFO','NOTICE','WARNING','ERROR','LOG','FATAL','PANIC','DEBUG']
Desired output level of logs
Default value: 'DEBUG'
Data type: Boolean
true or false (Default: true) Enabling echo output in logs
Default value: true
Data type: Integer
How many jobs to run in parallel
Default value: $facts['processors']['count'] / 4
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'facts' tables
Default value: $pe_databases::facts_tables_repack_timer
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'catalog' tables
Default value: $pe_databases::catalogs_tables_repack_timer
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'other' tables
Default value: $pe_databases::other_tables_repack_timer
Data type: String[1]
The Systemd timer for the pg_repack job affecting the 'activity' tables
Default value: $pe_databases::activity_tables_repack_timer
Data type: Optional[String]
Deprecated Parameter will be removed in future releases
Default value: undef
Data type: Optional[String]
Deprecated Parameter will be removed in future releases
Default value: undef
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
Data type: Array
Array of tables to repack
Default value: undef
This task will remove and recreate the pg_repack extension
Supports noop? false