Skip to content

Phaseout lol #223

Merged
merged 4 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions 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 Expand Up @@ -1656,8 +1656,7 @@ sub sync_cluster_pw {

our %AREA_ROUTER=
(
lol => '141.14.31.255',
# orkrist=> '10.14.0.255',
wtf => '141.14.31.255',
);

our $area_socket;
Expand Down Expand Up @@ -2148,7 +2147,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
2 changes: 1 addition & 1 deletion netlog/netlog
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sub check_idle {
sub netlog {
my ($log)=@_;
unless (defined $send_socket) {
$send_socket=new IO::Socket::INET(PeerAddr=>'lol',PeerPort=>1028) or return;
$send_socket=new IO::Socket::INET(PeerAddr=>'macheteinfach',PeerPort=>1028) or return;
}
if ($send_socket->send(pack('n',length($log)).$log)) {
$send_socket_active=Donald::Select::time();
Expand Down