gangliaのインストール@ubuntu16

計算機がなんとかものになるぐらいの数になったので,ジョブ投入できるように整備した.
暑くなってくると,熱が心配.

gangliaは,webブラウザで各マシン(client)の計算ロード等をまとめて元締めがapacheで流すソフトウェア.

まず,元締め=masterのインストール.

①sudo apt-get update
②sudo apt-get upgrade
③sudo apt-get install apache2 mariadb-server php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-curl php7.0-mcrypt
④sudo apt-get install ganglia-monitor rrdtool gmetad ganglia-webfrontend
⑤sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf
⑥sudo vi /etc/ganglia/gmetad.conf

data_source "novas" 50 192.168.12.11

⑦sudo vi /etc/ganglia/gmond.conf

udp_send_channel {
  mcast_join = 192.168.12.11
  port = 8649
  ttl = 1
}

/* You can specify as many udp_recv_channels as you like as well. */ 
udp_recv_channel {
#  mcast_join = 192.168.12.11
  port = 8649
#  bind = 192.168.12.11
}
/* You can specfy as many tcp_accept_channels as you like to share
   an xml description of the state of the cluster */
tcp_accept_channel {
  port = 8649
}

⑧sudo systemctl start ganglia-monitor
⑨sudo systemctl start gmetad
⑩sudo systemctl restart apache2


クライアントは,
①sudo apt-get update
②sudo apt-get upgrade
③sudo apt-get install ganglia-monitor
④sudo rsync  -av  nova1:/etc/ganglia/gmond.conf /etc/ganglia/gmond.conf
⑤sudo systemctl start ganglia-monitor

とし,
ブラウザのアドレスに
192.168.12.11/ganglia
と書けば各計算機の状況がグラフで表示される.
タイムラグがあるため,コア数などが実際のものと異なる場合がある.
クライアントのマシンで
sudo /etc/init.d/ganglia-monitor restart
を行い,
マスターのマシンで,
sudo /etc/init.d/gmetad restart
sudo systemctl restart apache2
をすればだんだん,反映されてくる.