Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiver4868a4fe4864
diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
index 593bcfa5df1..987883b0d2d 100644
--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.centos.template.erb
@@ -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
diff --git a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
index 92da3397444..b00d45f27dd 100644
--- a/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/10/postgresql.conf.template.erb
@@ -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
diff --git a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
index 92da3397444..b00d45f27dd 100644
--- a/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/11/postgresql.conf.template.erb
@@ -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
diff --git a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb
index a83a2dc16ed..a9db00d5a3b 100644
--- a/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/12/postgresql.conf.template.erb
@@ -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
diff --git a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb
index bb1dc5ba1c4..500e78cc469 100644
--- a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb
@@ -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
diff --git a/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb
index 96789dd83f0..b6aa655f278 100644
--- a/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb
+++ b/puppet/zulip/templates/postgresql/9.6/postgresql.conf.template.erb
@@ -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