Skip to content

Commit

Permalink
clusterd: Start netlog received on macheteinfach
Browse files Browse the repository at this point in the history
The individual netlog services send messages from system logfiles (e.g.
/var/log/messages) which they consider interesting to the clusterd of a
specific node. The receiving clusterd uses syslog() to log that message,
so they end up in /var/log/message of that node.

Let the clusterd of 'macheteinfach' listen to messages from the netlog
services instead of that on 'lol'. We use 'macheteinfach', because the
only current consumer of these messages is /project/azubi which happens
to run on lol. This way, this project no longer needs to use ssh to get
to the right logfile.
  • Loading branch information
donald committed Jan 18, 2022
1 parent e6b585c commit e3dcc80
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 @@ -2148,7 +2148,7 @@ if (defined $options{'push'}) {
My::Select::timeout(rand(60),\&send_stat);
My::Select::timeout(0,\&sample_rproc) unless Donald::Tools::is_alpha;
$my_hostname eq $STAT_TARGET and My::Cluster::Updown::init();
$my_hostname eq 'lol' and My::NetlogReceiver::init();
$my_hostname eq 'macheteinfach' and My::NetlogReceiver::init();
My::Select::timeout(600,\&check_overload);

My::Select::run();
Expand Down

0 comments on commit e3dcc80

Please sign in to comment.