From a43e121eb1357588734db23948ad3e97d229171d Mon Sep 17 00:00:00 2001 From: Marcus O'Flaherty Date: Fri, 14 Mar 2025 11:38:34 +0000 Subject: [PATCH 1/7] add removal of stale endpoints from connections map add loop timers and checking for slow loops in Execute run all read queries then all write queries, only one Multicast query per loop. Poor man's message prioritising as read/writes have a timeout and some multicast (monitoring) queries were taking very long (several seconds) to execute. change some verbositiies. --- MMUtilities.cpp | 64 ++++++++++++++++++++-------- Postgres.cpp | 1 + ReceiveSQL.cpp | 107 ++++++++++++++++++++++++++++++++++++++++------- ReceiveSQL.h | 5 +++ ReceiveSQLConfig | 4 +- show_logs.sh | 7 ++++ 6 files changed, 153 insertions(+), 35 deletions(-) create mode 100755 show_logs.sh diff --git a/MMUtilities.cpp b/MMUtilities.cpp index 19d2b95..d4c757d 100644 --- a/MMUtilities.cpp +++ b/MMUtilities.cpp @@ -14,9 +14,6 @@ int MMUtilities::ConnectToEndpoints(zmq::socket_t* readrep_sock, std::map