From fdd800a217cee6a9a32784d5fbf7876d0cc462df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 22 Feb 2024 23:10:56 +0000 Subject: [PATCH] Avoid fast retry on cluster --- lib/ProxySQL_Cluster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ProxySQL_Cluster.cpp b/lib/ProxySQL_Cluster.cpp index c1b6dc471c..60581b714f 100644 --- a/lib/ProxySQL_Cluster.cpp +++ b/lib/ProxySQL_Cluster.cpp @@ -275,6 +275,7 @@ void * ProxySQL_Cluster_Monitor_thread(void *args) { conn = mysql_init(NULL); int ci = __sync_fetch_and_add(&GloProxyCluster->cluster_check_interval_ms,0); usleep((ci)*1000); // remember, usleep is in us + sleep(1); // sleep for longer } } else { sleep(1); // do not monitor if the username is empty