ganglia-集群的配置

来源:互联网 发布:阿里云域名拍卖 编辑:程序博客网 时间:2024/05/22 08:28

gmetad:

data_source "Namenode" 192.168.1.28:8653data_source "Datanode" 192.168.1.27:8649data_source "Portal" 192.168.1.43:8650data_source "Collector" 192.168.1.35:8651data_source "DB" 192.168.1.51:8652


gmond:

cluster {    name = "Portal"    #对应gmetad中的Portal,名称一定要写对。    owner = "unspecified"    latlong = "unspecified"    url = "unspecified"}/* Feel free to specify as many udp_send_channels as you like.    Gmond     used to only support having a single channel */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 = 8650#gmetad中的Portal所分配的端口号。    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 = 8650    bind = 239.2.11.71}/* You can specify as many tcp_accept_channels as you like to share     an xml description of the state of the cluster */tcp_accept_channel {    port = 8650}

不同的集群需要用不同的端口

只需配置队长节点,其他节点只需要端口和集群名相同,便可以自动加到同一个集群里



0 0
原创粉丝点击