ganglia多cluster设置

例如有两个集群,cluster1,cluster2
cluster1{
    test0
}
cluster2{
    test1
    test2
}
gmeta部署在test0上

gmeta.conf配置如下:
data_source "cluster1" localhost
data_source "cluster2" test2
test0上的gmond.conf:
cluster {
name = "cluster1"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
host = test0
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 */
}

选取test2作为cluster2的headnode
test2上的gmond.conf配置:
cluster {
name = "cluster2"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
host = jx-psop-test2.jx
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 */
}

test1向test2汇报,由test2汇总,
test1的gmond.conf配置同test2

你可能感兴趣的:(职场,休闲,ganglia,cluster设置)