ganglia監控安裝部署
安裝ganglia監控
yum install epel-release
主節點:
yum -y install ganglia-gmetad
yum -y install ganglia-web
所有節點:
yum -y install ganglia-gmond
主節點上配置:
vi /etc/ganglia/gmetad.conf
data_source "my cluster" FlinkMaster FlinkNode1 FlinkNode2
vi /etc/httpd/conf.d/ganglia.conf
<Location /ganglia>
Order deny,allow
Allow from all
# Require local
# Require ip 10.1.2.3
# Require host example.org
</Location>
vi /etc/httpd/conf/httpd.conf
<Directory />
#AllowOverride none
#Require all denied
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>
所有節點配置:
vi /etc/ganglia/gmond.conf
cluster {
name = " my cluster "
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
啟動服務:
主節點:
service gmetad restart
service gmond start
service httpd restart
chkconfig gmetad on
chkconfig gmond on
其他節點:
service gmond restart
chkconfig gmond on
最後通過網址訪問:http://service_ip/ganglia
ganglia監控安裝部署