From 5a8fbb10d857b8e035b1c1f19141b6dd5c0392c3 Mon Sep 17 00:00:00 2001 From: Orange Kao Date: Thu, 3 Jul 2025 06:43:50 +0000 Subject: [PATCH] Change wait_select default timeout to 10 seconds Default timeout of wait_select was 5 seconds. When a node in google-europe-north1 need to observe a PG in upcloud-sg-sin, will result in PglookoutTimeout. This commit increase wait_select default timeout to 10 seconds. --- pglookout/cluster_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pglookout/cluster_monitor.py b/pglookout/cluster_monitor.py index b767129..223b969 100644 --- a/pglookout/cluster_monitor.py +++ b/pglookout/cluster_monitor.py @@ -44,7 +44,7 @@ class ReplicationSlot: state_data: str -def wait_select(conn, timeout=5.0): +def wait_select(conn, timeout=10.0): end_time = time.monotonic() + timeout while time.monotonic() < end_time: time_left = end_time - time.monotonic()