wiki:jazz/11-02-10

2011-02-10

  • 準備 ICAS, Crawlzilla, f-motif Demo VM

Ganglia

  • Ganglia 設定檔參考 - Ubuntu karmic (9.04) 以後是 3.1.2-2 版本,且有 ganglia-webfrontend 套件,設定方式比較簡單。
    #### Server ####
    ~$ sudo apt-get install gmetad ganglia-webfrontend ganglia-monitor
    #### Client ####
    ~$ sudo apt-get install ganglia-monitor
    
  • 把 ganglia-webfrontend 的 apache 設定檔連結到 apache2 的目錄
    ~$ cd /etc/apache2/conf.d
    /etc/apache2/conf.d$ sudo ln -s ../../ganglia-webfrontend/apache.conf ganglia-webfrontend
    /etc/apache2/conf.d$ sudo apache2ctl restart
    
  • /etc/ganglia/gmetad.conf - 自行取代掉 ${HOSTNAME_*} 內容
    data_source "${HOSTNAME_1}" ${HOSTNAME_1}:8649
    data_source "${HOSTNAME_2}" ${HOSTNAME_2}:8649
    data_source "${HOSTNAME_3}" ${HOSTNAME_3}:8649
    trusted_hosts 127.0.0.1 ${HOSTNAME_1} ${HOSTNAME_2} ${HOSTNAME_3}
    
  • /etc/ganglia/gmond.conf
    • gmond.conf

      old new  
      3232/* Feel free to specify as many udp_send_channels as you like.  Gmond
      3333   used to only support having a single channel */
      3434udp_send_channel {
      35   mcast_join = 239.2.11.71
       35#  mcast_join = 239.2.11.71
       36  host = localhost
      3637  port = 8649
      37   ttl = 1
       38#  ttl = 1
      3839}
      3940
      4041/* You can specify as many udp_recv_channels as you like as well. */
      4142udp_recv_channel {
      42   mcast_join = 239.2.11.71
       43#  mcast_join = 239.2.11.71
      4344  port = 8649
      44   bind = 239.2.11.71
       45#  bind = 239.2.11.71
      4546}
  • [參考] HOWTO: Setting up Ganglia, simply
    • http://term.ie/data/ganglia_arch.png
    • 看完這張圖才恍然大悟,我先前的設定錯了,不該把 gmond 指到 gmond 去。
Last modified 14 years ago Last modified on Feb 23, 2011, 11:45:14 AM