關於 Ganglia 軟件,Ganglia是一個跨平臺可擴展的,高性能計算系統下的分佈式監控系統,如集羣和網格。它是基於分層設計,它使用廣泛的技術,如XML數據代表,便攜數據傳輸,RRDtool用於數據存儲和可視化。它利用精心設計的數據結構和算法實現每節點間併發非常低的。
它已移植到廣泛的操作系統和處理器架構上,目前在世界各地成千上萬的集羣正在使用。它已 被用來連結大學校園和世界各地,可以處理2000節點的規模。
Ganglia 3.1.x下擴展Python模塊(翻譯自官方wiki) http://www.linuxidc.com/Linux/2014-04/99565.htm
使用Ganglia監控Hadoop集羣http://www.linuxidc.com/Linux/2012-05/61349.htm
在VMware Workstation的Ubuntu下安裝和配置Hadoop與Gangliahttp://www.linuxidc.com/Linux/2013-06/85856.htm
Ganglia安裝部署之一建立Grid http://www.linuxidc.com/Linux/2013-05/83673.htm
Ganglia 極其簡單安裝教程yum版 http://www.linuxidc.com/Linux/2012-12/76536.htm
Ganglia快速開始嚮導(翻譯自官方wiki) http://www.linuxidc.com/Linux/2013-11/92747.htm
CentOS集羣上安裝Ganglia-3.6.0監控Hadoop-2.2.0和HBase-0.96.0http://www.linuxidc.com/Linux/2014-01/95804.htm
Ganglia在CentOS 6.5的安裝 http://www.linuxidc.com/Linux/2014-05/102024.htm
1、首先,需要確保在 Ubuntu14.04 上安裝了 LAMP 服務。
Ganglia 由兩個所謂主要守護進程 gmond(Ganglia 監測守護進程)和 gmetad(Ganglia 元守護進程),一個基於 PHP 的 Web 前端和其他一些小的實用程序。
2、在 Ubuntu14.04 上安裝 Ganglia 。
打開終端,運行以下命令:
sudo apt-get install ganglia-monitor rrdtool gmetad ganglia-webfrontend
在安裝過程中,你應該會看到類似下面的安裝後與apache2服務器重啓選擇,直接 Yes,然後按Enter鍵。
3、配置 Ganglia
已經完成了基本的安裝,現在我們按照下面必要的步驟來配置
4、Ganglia 主節點配置
現在,你需要複製 Ganglia webfrontend Apache 配置,使用下面的命令來正確的位置:
sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf
現在,您需要使用以下命令來編輯 Ganglia 元守護程序的配置文件:
sudo vi /etc/ganglia/gmetad.conf
更改如下:
data_source "my cluster" localhost
修改爲:
data_source "my cluster" 50 192.168.56.10:8649
下面列出機器服務的數據源,IP:端口或服務器名稱:端口。如果未指定端口號8649(默認gmond端口)。
需要使用下面的命令編輯主節點的配置文件:
sudo vi /etc/ganglia/gmond.conf
做下面的變化:
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a tag. If you do not specify a cluster tag, then all will
* NOT be wrapped inside of a tag. */
cluster {
name = "unspecified"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
修改爲:
cluster {
name = "my cluster"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
/* Feel free to specify as many udp_send_channels as you like. Gmond
used to only support having a single channel */
udp_send_channel {
mcast_join = 239.2.11.71
port = 8649
ttl = 1
}
修改爲:
/* Feel free to specify as many udp_send_channels as you like. Gmond
used to only support having a single channel */
udp_send_channel {
# mcast_join = 239.2.11.71
host = 192.168.56.10
port = 8649
ttl = 1
}
/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
mcast_join = 239.2.11.71
port = 8649
bind = 239.2.11.71
}
修改爲:
/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
# mcast_join = 239.2.11.71
port = 8649
#bind = 239.2.11.71
}
保存並關閉文件。
需要重啓服務:
sudo /etc/init.d/ganglia-monitor start
sudo /etc/init.d/gmetad start
sudo /etc/init.d/apache2 restart
現在你可以使用以下命令訪問gnglia webinterface:
http://serverip/ganglia/