二 配置
配置分三类
gmetad ,gmond ,还有系统级别的
A gmetad 修改文件/etc/ganglia/gmated.conf
data_source "falcon" localhost falcon2.falcon1.com falcon3.falcon1.com falcon4.falcon1.com falcon5.falcon1.com falcon6.falcon1.com
我配置了六台 。具体情况具体配置
B gmond 修改文件/etc/ganglia/gmond.conf
globals {
daemonize = yes
setuid = yes #关键
user = nobody
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = no
allow_extra_data = yes
host_dmax = 86400 /*secs. Expires (removes from web interface) hosts in 1 day */
host_tmax = 20 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
send_metadata_interval = 0 /*secs */
}
....
....
cluster {
name = "test" #关键
owner = "nobody" #关键
latlong = "unspecified"
url = "unspecified"
}
还有一些其他的配置,我尝试修改,但是都通不了。。。唉
C系统级别 配置
1关闭防火墙(配置也可)
2 配置网卡 解决组播问题 (据说只有虚拟机有问题)
vi /etc/sysconfig/network-scripts/route-eth0
插入
239.2.11.71 dev eth0
重启网络 service network restart
3 gmetad 端需要
setenforce 0 或者关闭linuxSecurity(不知道拼写错没有)
网上有很多可以自己找一下
三 启动
metad端
service gmetad start
service httpd start
mond端
service gmond start
访问服务器ip/ganglia