What is Ganglia?

Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. It leverages widely used technologies such as XML for data representation, XDR for compact, portable data transport, and RRDtool for data storage and visualization. It uses carefully engineered data structures and algorithms to achieve very low per-node overheads and high concurrency. The implementation is robust, has been ported to an extensive set of operating systems and processor architectures, and is currently in use on thousands of clusters around the world. It has been used to link clusters across university campuses and around the world and can scale to handle clusters with 2000 nodes.

그렇다 -_-; 다시말해 갱그리아는 클러스터 모니터링 툴이라고 할 수 있다.

이를 이용해서 카산드라 서버을 모니터링 해보고자 한다.

고고고!

 

1. 설치

apt-get은 진짜 요즘 세상 좋아졌다-_- 라는 말이 절로 나오게 만든다.

apt-get install ganglia-monitor

 

2. 설정

vi /etc/ganglia/gmond.conf

globals {
  daemonize = yes
  setuid = yes
  user = root
  debug_level = 0
  max_udp_msg_len = 1472
  mute = no
  deaf = no
  host_dmax = 0 /*secs */
  cleanup_threshold = 300 /*secs */
  gexec = no
  send_metadata_interval = 0
}

cluster {
  name = "Cassandra cluster"
  owner = "Cardia"
  latlong = "unspecified"
  url = "unspecified"
}

host {
  location = "unspecified"
}

udp_send_channel {
  host = node1
  port = 86
  ttl = 1
}

udp_recv_channel {
  port = 8661
}

tcp_accept_channel {
  port = 8661
}

설정을 막 하고 나면 ganglia에서 데몬을 돌리고 있는 상태이므로 
sudo service ganglia-monitor restart

ps aux | grep gmond
해서 원하는 유저의 이름으로 gmond가 돌아가고 있는지 확인한다.

+ Recent posts