From 993fd9f64eb15b9713e13243e8a502a2d045c852 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 30 Oct 2019 19:37:53 +0000 Subject: [PATCH] =?UTF-8?q?postgresql=5Fserver=20/=20db-koji02:=20set=20ma?= =?UTF-8?q?x=5Fstandby=5Fstreaming=5Fdelay=20to=20-1=20(=20=E2=88=9E=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turns out I had set this on the master (db-koji01) which is ignored. We need to set it on the standby. With a value of -1, the standby will wait for conflicting transactions/locks to complete however long it takes. If this doesn't work to get us a good backup on db-koji02, no harm and we can try something else. Signed-off-by: Kevin Fenzi --- roles/postgresql_server/templates/postgresql.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/postgresql_server/templates/postgresql.conf b/roles/postgresql_server/templates/postgresql.conf index d2a73c22d3..2f603bb365 100644 --- a/roles/postgresql_server/templates/postgresql.conf +++ b/roles/postgresql_server/templates/postgresql.conf @@ -510,8 +510,8 @@ effective_io_concurrency = 1 wal_level = 'hot_standby' max_wal_senders = 10 wal_keep_segments = 100 -max_standby_streaming_delay = 90s {% elif ansible_hostname.startswith("db-koji02") %} hot_standby = on hot_standby_feedback = on +max_standby_streaming_delay = -1 {% endif %}