From e92ef6821628186c969bdf504a6a21f53212b79a Mon Sep 17 00:00:00 2001 From: Frank Hereford Date: Thu, 14 Mar 2024 12:51:43 -0500 Subject: [PATCH 1/3] extend idle timeout interval --- atd-toolbox/read_replica_proxy/haproxy.cfg.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atd-toolbox/read_replica_proxy/haproxy.cfg.template b/atd-toolbox/read_replica_proxy/haproxy.cfg.template index e30c76e42..e4c518ee0 100644 --- a/atd-toolbox/read_replica_proxy/haproxy.cfg.template +++ b/atd-toolbox/read_replica_proxy/haproxy.cfg.template @@ -5,8 +5,8 @@ defaults log global mode tcp timeout connect 5000ms - timeout client 50000ms - timeout server 50000ms + timeout client 300000ms + timeout server 300000ms frontend postgresql_front bind 0.0.0.0:5432 From f75648d9e16ee0fd090b198e14f13b5487894419 Mon Sep 17 00:00:00 2001 From: Frank Hereford Date: Thu, 14 Mar 2024 13:18:53 -0500 Subject: [PATCH 2/3] let's go for 10 minutes --- atd-toolbox/read_replica_proxy/haproxy.cfg.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atd-toolbox/read_replica_proxy/haproxy.cfg.template b/atd-toolbox/read_replica_proxy/haproxy.cfg.template index e4c518ee0..fea0f9d11 100644 --- a/atd-toolbox/read_replica_proxy/haproxy.cfg.template +++ b/atd-toolbox/read_replica_proxy/haproxy.cfg.template @@ -5,8 +5,8 @@ defaults log global mode tcp timeout connect 5000ms - timeout client 300000ms - timeout server 300000ms + timeout client 600000ms + timeout server 600000ms frontend postgresql_front bind 0.0.0.0:5432 From a801f9a1b09dcbebcae3a32c858ce351a71c0f89 Mon Sep 17 00:00:00 2001 From: Frank Hereford Date: Mon, 18 Mar 2024 09:18:03 -0500 Subject: [PATCH 3/3] Use sensible time units --- atd-toolbox/read_replica_proxy/haproxy.cfg.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atd-toolbox/read_replica_proxy/haproxy.cfg.template b/atd-toolbox/read_replica_proxy/haproxy.cfg.template index fea0f9d11..de4538280 100644 --- a/atd-toolbox/read_replica_proxy/haproxy.cfg.template +++ b/atd-toolbox/read_replica_proxy/haproxy.cfg.template @@ -4,9 +4,9 @@ global defaults log global mode tcp - timeout connect 5000ms - timeout client 600000ms - timeout server 600000ms + timeout connect 5s + timeout client 10m + timeout server 10m frontend postgresql_front bind 0.0.0.0:5432