From 504c6f842d35ece2f6c45a99006c5ea4c461107a Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 18 Jan 2022 12:53:56 +0100 Subject: [PATCH] clusterd: Send stat messages to afk Each clusterd sends regular status messages (version and load information) to a single clusterd which currently just collects them for operator review. buczek@macheteinfach:~/git/mxtools (phaseout-lol)$ telnet lol 234 Trying 141.14.29.220... Connected to lol. Escape character is '^]'. clusterd 20220118-124724 stupid console For historical messages, grep "clusterd" from /var/log/messages on lol (or "tail -f /var/log/messages |grep cluster") v abelson : ['DOWN',0,28,'0.01','V1.108 - 20170215-151907',0,'434420.8','4.9.38.mx64.164'] ace : ['UP','95647416.84',1,0,'20220118-124724',0,'921594.24','5.10.70.mx64.403'] acedia : ['UP',0,1,'0.72','20220118-124724','0.00104166666666667','30613821.35','5.10.24.mx64.375'] afk : ['UP','95647391.2',1,'0.1','20220118-124724',0,'5941821.44','4.14.87.mx64.236'] agentwhiskey : ['UP',0,1,'0.07','20220118-124724',0,460800,'5.10.82.mx64.414'] [...] Connection closed by foreign host. The utility of this can be debated and maybe we should remove that completely. Anyway, for now send status messages to "afk" instead of "lol", because "lol" is going to be taken out of commission. --- clusterd/clusterd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterd/clusterd b/clusterd/clusterd index 028b121a..7121b850 100755 --- a/clusterd/clusterd +++ b/clusterd/clusterd @@ -1243,7 +1243,7 @@ sub loadavg { # AXP : (system load average) , LINUX: (system load average, pl } } -our $STAT_TARGET='lol'; +our $STAT_TARGET='afk'; our $STAT_SEQ=0; sub send_stat { My::Select::timeout_requeue(600);