puppet: Set a long timeout on wal-g wal-push, to prevent stalls.

`wal-g wal-push` has a known bug with occasionally hanging after file
upload to S3[1]; set a rather long timeout on the upload process, so
that we don't simply stall forever when archiving WAL segments.

[1] https://github.com/wal-g/wal-g/issues/656
This commit is contained in:
Alex Vandiver 2020-11-19 17:37:26 -08:00 committed by Tim Abbott
parent 419f163906
commit 4868a4fe48
6 changed files with 6 additions and 6 deletions

View File

@ -698,7 +698,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on

View File

@ -698,7 +698,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on

View File

@ -698,7 +698,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on

View File

@ -792,7 +792,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on

View File

@ -670,7 +670,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on

View File

@ -683,7 +683,7 @@ listen_addresses = <%= @listen_addresses %>
wal_level = hot_standby
max_wal_senders = 5
archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
hot_standby = on