Skip to content

Commit

Permalink
Merge pull request #98 from jordiprats/master
Browse files Browse the repository at this point in the history
opcions slave
  • Loading branch information
jordiprats authored Mar 26, 2020
2 parents bd51714 + 90ace19 commit 3c3cd04
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.4.9

* added **max_standby_archive_delay** and **max_standby_streaming_delay**

## 0.4.8

* added compliance check for **check_postgres_datadir**
Expand Down
4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
$max_wal_senders = '5',
$checkpoint_segments = '16',
$wal_keep_segments = '0',
$hot_standby = false,
$pidfile = undef,
$log_directory = $postgresql::params::log_directory_default,
$log_filename = $postgresql::params::log_filename_default,
Expand Down Expand Up @@ -116,6 +115,9 @@
$max_worker_processes = $::processorcount,
$max_parallel_workers = $::processorcount,
$max_parallel_workers_per_gather = max(2, ceiling(sprintf('%f', ($::processorcount)/2))),
$hot_standby = false,
$max_standby_archive_delay = '30s',
$max_standby_streaming_delay = '30s',
$ensure_nagios_checks = 'present',
$basedir_nagios_checks = '/usr/local/bin',
) inherits postgresql::params {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-postgresql",
"version": "0.4.8",
"version": "0.4.9",
"author": "eyp",
"summary": "postgresql and pgbounce installation, configuration and management",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/postgresconf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ wal_keep_segments = <%= @wal_keep_segments %> # in logfile segments, 16MB each;

hot_standby = <%= scope.function_bool2onoff([@hot_standby]) %> # "on" allows queries during recovery
# (change requires restart)
#max_standby_archive_delay = 30s # max delay before canceling queries
max_standby_archive_delay = <%= @max_standby_archive_delay %> # max delay before canceling queries
# when reading WAL from archive;
# -1 allows indefinite delay
#max_standby_streaming_delay = 30s # max delay before canceling queries
max_standby_streaming_delay = <%= @max_standby_streaming_delay %> # max delay before canceling queries
# when reading streaming WAL;
# -1 allows indefinite delay
#wal_receiver_status_interval = 10s # send replies at least this often
Expand Down

0 comments on commit 3c3cd04

Please sign in to comment.