有人建议我们尝试使用 Ganglia 作为集群的监控工具。
安装非常顺利,但 gmond 和 gmetad 之间的连接存在问题。 元节点只能(在网络上)看到本地 gmond 主机(本身)。
gmetad的配置(10.45.11.26是gmetad localhost):
data_source "hbase" 10.45.11.26
gmond的配置(10.45.11.27是gmond localhost):
cluster {
name = "hbase"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
host=10.45.11.26
port = 8649
ttl = 1
}
udp_recv_channel {
port = 8649
bind = 10.45.11.27
}
tcp_accept_channel {
port = 8649
}
端口 8649 上从 gmetad 到 gmond 的 Telnet 返回 xml。 我可以在 gmetad 节点 (tcpdump) 上看到来自 gmond 的 udp 流量
我在这里缺少什么?
最佳答案
我不知道您是否还需要帮助,但添加可以帮助您
globals {
(......)
send_metadata_interval = 60 /*gmond heartbeats in secs */
}
在 gmond.conf 中
在这种情况下,您可能需要在节点启动后等待 60 秒才能看到它。
关于linux - Ganglia 无法在元节点和受监控节点之间进行通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9902964/