Chinaunix首页 | 论坛 | 博客
  • 博客访问: 184939
  • 博文数量: 26
  • 博客积分: 215
  • 博客等级: 入伍新兵
  • 技术积分: 346
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-21 15:00
文章分类

全部博文(26)

文章存档

2017年(10)

2016年(1)

2015年(2)

2014年(1)

2013年(7)

2012年(5)

我的朋友

分类: 云计算

2012-10-30 11:43:35

官网关于组建的方法很少,而在部分网站已经实现了远程grid集群组网(例如:)
昨晚之后的效果与上面链接的情况一致!

先将组建远程Grid网络总结和遇到的一些问题发给大家,仅供参考:
配置概述:
1、全网(最高级别显示)
gmetad.conf参数
#grep -v ‘#’ /etc/ganglia/gmetad.conf
data_source "clusterGrid" 50 10.10.218.60:8651 //*指定采集的数据源地址和XML端口号*
setuid_username "root" //*验证数据目录属性*
gridname "Top Grid" //*指定最顶层gridname属性*
rrd_rootdir "/var/lib/ganglia/rrds" //*指定rrds存储目录*
authority ""  //*指定集群访问本地ganglia链接地址,必须有*
scalable on //*开启收集下游转发服务器功能*
gmond.condf请参数gmond客户端设置
gweb设置为默认,未改动
2、采集汇总服务器
#grep -v ‘#’ /etc/ganglia/gmetad.conf
data_source "SY" 50 127.0.0.1:8649 //*指定采集的数据源*
setuid_username "root"
gridname " clusterGrid "
rrd_rootdir "/var/lib/ganglia/rrds/"
authority ""  //*指定集群访问本地ganglia链接地址,gweb需要用到*
trusted_hosts 127.0.0.1 10.10.218.225 10.10.218.60 //*指定信任XML共享服务器,可以不实用次操作*
all_trusted on
xml_port 8651 //*指定XML应答所用端口号*
gmond.condf请参数gmond客户端设置
3、采集服务器(此处忽略未作设置
可以没有gmetad,如果需要设置参考上文采集汇总服务器的gmetad设置
开启gmond采集功能,修改gmond.conf中的beaf=on,其他请参考gmond客户端设置
4、gmond客户端
只开启gmond客户端
globals {
daemonize = yes
setuid = yes
user = nobody
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = yes
allow_extra_data = yes
host_dmax = 0 /*secs */
host_tmax = 20 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
send_metadata_interval = 0 /*secs */
}
/*
* The cluster attributes specified will be used as part of the
* tag that will wrap all hosts collected by this instance.
*/
cluster {
name = "SY"
owner = "clusterGrid"
latlong = "unspecified"
url = "unspecified "
}
/* The host section describes attributes of the host, like the location */
host {
location = "BeiJing_DBL"
}
udp_send_channel {
bind_hostname = yes # Highly recommended, soon to be default.
# This option tells gmond to use a source address
# that resolves to the machine's hostname. Without
# this, the metrics may appear to come from any
# interface and the DNS names associated with
# those IPs will be used to create the RRDs.
#mcast_join = 239.2.11.71
port = 8649
host = 10.10.218.60
#ttl = 1
}
总结:
根据现有配置在gweb发布页面中有Grid名为“ Borqs_Panguso”的远程Grid数据源,实际情况未出现改Grid数据源。
问题总结:
在全网服务器gweb没有显示改grid,gmetad中的debug未报错,rrds中也没有该数据;采集服务器的gmetad也没报错
gmetad启动的debug信息:
[root@VM-0001 ~]# service gmetad restart
Shutting down GANGLIA gmetad: [FAILED]
Starting GANGLIA gmetad: Going to run as user root
Sources are ...
Source: [Borqs_Panguso, step 50] has 1 sources
10.10.218.60
xml listening on port 8651
interactive xml listening on port 8652
Data thread 139754921920256 is monitoring [Borqs_Panguso] data source
10.10.218.60
cleanup thread has been started
[Borqs_Panguso] is a 2.5 or later data stream
hash_create size = 50
hash->size is 53
Found a , depth is now 1
Found a , depth is now 0
server_thread() received request "/?filter=summary" from 127.0.0.1
Found subtree / and filter=summary
server_thread() received request "/?filter=summary" from 127.0.0.1
Found subtree / and filter=summary
server_thread() received request "/?filter=summary" from 127.0.0.1
Found subtree / and filter=summary
[Borqs_Panguso] is a 2.5 or later data stream
hash_create size = 50
hash->size is 53
Found a , depth is now 1
Found a , depth is now 0
[Borqs_Panguso] is a 2.5 or later data stream
hash_create size = 50
hash->size is 53
Found a , depth is now 1
Found a , depth is now 0

总结分析结果,应为功能以实现。具体情况应该是版本问题!事后证明,果然为版本问题所致


阅读(2808) | 评论(0) | 转发(0) |
0

上一篇:关于自动挂载

下一篇:SHELL tr命令详解

给主人留下些什么吧!~~