Skip to content

Commit

Permalink
clusterd: Send stat messages to afk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Jan 18, 2022
1 parent 3d136b4 commit ad7fa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterd/clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad7fa39

Please sign in to comment.