Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Ganglia in ubuntu14.04

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to deploy Ganglia in ubuntu14.04, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Technical architecture

Ganglia system is mainly divided into the following three modules:

Gmond: Gmond runs on each monitored node and is mainly responsible for collecting and sending monitoring data

Gmetad: Gmetad runs on a host in each cluster to summarize the data collected by each node and store it in the RDD storage engine

Gweb: Gweb is used to graphically display the data collected by gmetad. It runs on the apache server and is generally deployed on the same machine as the gmetad in the cluster.

Machine configuration:

Host of control node: 10.20.4.56

Monitored nodes: 10.20.4.57 (receive and save cluster complete data), 10.20.4.58 (receive and save cluster complete data), 10.20.4.59

Installation steps:

One: installation of monitored nodes

1.sudo apt-get update

2.sudo apt-get install ganglia-monitor

3. Configuration

Configuration / etc/ganglia/gmond.conf file

Vim / etc/ganglia/gmond.conf

Modify the Global area as shown in the following figure. You only need to modify user and send_metadata_interval.

Modify the Cluster region as shown in the following figure. Modify the name name. This is the cluster name, which is used for the configuration of gmetad later.

The Udp_send_channel area is modified as follows: comment out mcasy_jion (for multicast). We use unicast here. Replace 10.20.4.57 and 10.20.4.58 with the name of your machine.

Udp_recv_channe is modified as follows. Just comment out mcast_join and bind.

Start gmond

Sudo / etc/init.d/ganglia-monitor restart

Note:

You can run telnet localhost 8649 before starting

If it appears as shown in the following figure, the xml content is installed correctly, then install it down

You can also change the debug in gmond.conf from 0 to 100, read more logs, and then troubleshoot.

Second: control node installation

1.sudo apt-get update

2.sudo apt-get install rrdtool apache2 php5 ganglia-monitor gmetad ganglia-webfrontend

A dialog box for apache2 restart appears during the process. Just select yes.

3. Copy the Ganglia webfrontend Apache configuration:

Sudo cp / etc/ganglia-webfrontend/apache.conf / etc/apache2/sites-enabled/ganglia.conf

4. Configure gmetad Profil

Vim / etc/ganglia/gmetad.conf

To find data_source, the first parameter, hadoop-cluster, must be the same as the name of gmond.conf 's cluster, and the second parameter is the same as host in upd_send_channel. Of course, there can be many. I have configured two here, and the second one is used as a redundant backup.

5. Sudo ln-s / usr/share/ganglia-webfrontend/ / var/www/ganglia

6. Restart the service

Sudo / etc/init.d/gmetad restart

Sudo / etc/init.d/apache2 restart

7. If it appears

Sorry, you do not have access to this resource. ");} try {dwoo=newDwoo (conf ['dwoo_compiled_dir'], conf [' dwoo_cache_dir']);} catch (Exceptione) {print"

This is due to the lack of mod-php and php7.0-xml modules:

Sudo apt-get install libapache2-mod-php7.0 php7.0-xml; sudo / etc/init.d/apache2 restart

8. Log in to http://10.20.4.56/ganglia to view the monitoring effect

The above is how to deploy Ganglia in ubuntu14.04. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report