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 analyze the principle of ganglia

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Today, I would like to talk to you about how to analyze the principle of ganglia. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

1 Overview of Ganglia

Ganglia is an open source cluster monitoring project launched by UC Berkeley, designed to measure thousands of nodes. The core of Ganglia consists of gmond, gmetad, and a Web front end. It is mainly used to monitor the system performance, such as cpu, mem, hard disk utilization, Imax O load, network traffic and so on. It is easy to see the working status of each node through the curve, which plays an important role in reasonably adjusting and allocating system resources and improving the overall performance of the system.

Take a look at a picture of ganglia monitoring:

As you can see from the above picture, a monitoring system probably includes:

Gmond,gmetad,rrdtool,Apache,PHP and a showcase web

The steps of the monitored cluster nodes are as follows:

Step 1: install gmond on each node of the data to be collected, which is mainly used to collect node information and store information (the storage information here will be explained later)

Step 2: just deploy on one machine (on the machine we need to access through web), which is mainly used to poll and collect gmond information and store it on disk in some form.

Step 3: install the apache web server and php (since gweb was developed by php) to build the gweb execution environment

Step 4: install gweb to show the historical data you just collected more clearly in the form of web.

Of course, there will be some plug-ins, which will explain how to use it and how to install it.

2.2 brief introduction of the work

Common configuration

Gridname (text format)

A string that uniquely identifies the grid.

Data_source

Each data_source consists of three fields. The first field is a string that uniquely identifies the data_source; the second field is the number that specifies the polling interval (in seconds); and the third field is a space-separated list of hosts for the data to be polled, specified in the form of IP address or DNS hostname, and may add a suffix of the form ": Port number" that indicates the location of the tcp_accept_channel of the gmond. If the port number is not specified, gmetad will try to connect to tcp/8649

Setuid_username (UID)

Gmetad sets the user name of the UID. Default is nobody

Rrd_rootdir (path)

Specifies the base directory where RRD files are stored on the local file system.

3) Gweb

Gweb is the easiest to configure and the daemon that requires minimal configuration to work. In fact, gweb can launch and run a fully functional Web client without changing any of gweb's default configuration.

A web-based monitoring interface is usually installed on the same node as Gmetad (you also need to confirm whether it can not be on the same node, because ms in the configuration file of php can configure the address and port of gmetad). It takes data from Gmetad, reads the Gmetad database, generates pictures, and displays them.

After reading the above, do you have any further understanding of how to analyze the principle of ganglia? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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