Install Ganglia on Ubuntu 14.04 Server (Trusty Tahr)
来源:互联网 发布:it行业进销存软件 编辑:程序博客网 时间:2024/05/18 01:18
Sponsored Link
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.
Preparing your server
First you need to make sure you have Installed ubuntu 14.04 LAMP server
Ganglia consists of two main daemons called gmond (Ganglia Monitoring Daemon) and gmetad (Ganglia Meta Daemon), a PHP-based web front-end and a few other small utilities.
Ganglia Monitoring Daemon (gmond)
The Ganglia Monitoring Daemon (gmond) listens to the cluster message channel, stores the data in-memory and when requested will output an XML description of the state of the cluster
Ganglia Meta Daemon (gmetad)
The Ganglia Meta Daemon (gmetad) collects information from multiple gmond or gmetad data sources, saves the information to local round-robin databases, and exports XML which is the concatentation of all data sources
Ganglia PHP Web Front-end
It displays all the gathered information from the clients in a meaningful way like graphs via web pages.
Install Ganglia on Ubuntu 14.04
Open the terminal and run the following command
sudo apt-get install ganglia-monitor rrdtool gmetad ganglia-webfrontend
During the installation you should see similar to the following related to apache2 server restart after installation select Yes and press enter
Configuring Ganglia
Now we have completed the basic installation so we need to configure the required steps
Ganglia Master Node Configuration
Now you need to copy the ganglia webfrontend apache configuration to correct location using the following command
sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf
Now you need to edit the ganglia meta daemon configuration file using the following command
sudo vi /etc/ganglia/gmetad.conf
Change the following
data_source "my cluster" localhost
to
data_source "my cluster" 50 192.168.56.10:8649
A list of machines which service the data source follows, in the format ip:port, or name:port. If a port is not specified then 8649 (the default gmond port) is assumed.
Need to edit the master node configuration file using the following command
sudo vi /etc/ganglia/gmond.conf
Do the following changes
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a tag. If you do not specify a cluster tag, then all
will
* NOT be wrapped inside of a
tag. */
cluster {
name = "unspecified"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
to
cluster {
name = "my cluster"
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 {
mcast_join = 239.2.11.71
port = 8649
ttl = 1
}
to
/* Feel free to specify as many udp_send_channels as you like. Gmond
used to only support having a single channel */
udp_send_channel {
# mcast_join = 239.2.11.71
host = 192.168.56.10
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
}
to
/* 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
}
Save and exit the file
Now you need to restart the services
sudo /etc/init.d/ganglia-monitor start
sudo /etc/init.d/gmetad start
sudo /etc/init.d/apache2 restart
Now you can access the gnglia webinterface using the following command
http://serverip/ganglia/
Ganglia clients Installation
You need to install the following client package on all the servers you want to monitor
sudo apt-get install ganglia-monitor
Ganglia Client Configuration
You need to edit the gmond.conf file using the following commands
sudo vi /etc/ganglia/gmond.conf
Do the following changes
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a tag. If you do not specify a cluster tag, then all
will
* NOT be wrapped inside of a
tag. */
cluster {
name = "unspecified"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
to
cluster {
name = "my cluster"
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 {
mcast_join = 239.2.11.71
port = 8649
ttl = 1
}
to
/* Feel free to specify as many udp_send_channels as you like. Gmond
used to only support having a single channel */
udp_send_channel {
# mcast_join = 239.2.11.71
host = 192.168.56.10
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
}
to
/* 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
#}
Save and exit the file
Now you need to restart the ganglia monitor service
sudo /etc/init.d/ganglia-monitor restart
- Install Ganglia on Ubuntu 14.04 Server (Trusty Tahr)
- Install MariaDB Server 10.0 on Ubuntu 14.04 LTS ( Trusty Tahr )
- How to install the latest Nvidia drivers on Ubuntu 14.04 Trusty Tahr
- Writing Japanese with Ubuntu 14.04 Trusty Tahr
- 2.5Ubuntu 14.04 LTS (Trusty Tahr)
- GPShell install on Ubuntu trusty 14.04
- Ubuntu 14.04 (Trusty Tahr) LTS 发布已提供下载
- Ubuntu 14.04 LTS (Trusty Tahr) 64 bits安装opencv3.0.0beta
- Trusty Tahr(记录路径)
- CDH(hadoop) install on ubuntu 14.04server
- docker install on ubuntu 14.04 server
- Install Ganglia Monitoring System On Ubuntu 13.10 / Debian 7
- install ganglia[ubuntu]
- Install Samba Server on Ubuntu
- How To Install VNC Server On Ubuntu 14.04
- How to install VNC server on ubuntu 14.04
- How To Install Node.js on an Ubuntu 14.04 server
- Comlile and Install OpenVas 8 on Ubuntu Server 14.04
- root = Tk() 和 root = Tkinter.Tk() 区别
- html5和css篇有关浮动以及如何清除浮动
- FPGA与CPLD的区别
- VK Cup 2016 - Qualification Round 1——B. Chat Order(试手stack+map)
- 原来border还可以这样用
- Install Ganglia on Ubuntu 14.04 Server (Trusty Tahr)
- hihoCoder题目AC #1040 : 矩形判断 Java
- Hadoop集群搭建笔记
- JAVA API 被坑备忘录
- java多态类的成员访问特点探究
- WCF入门教程——宿主(三)
- 设计模式之------创建型模式(五)-----原型模式
- Unity3D 简单待机状态图片循环淡入淡出
- 动态类型dynamic和动态语言运行时DLR