Ganglia Python extension module development
Note: The Code involved in this article has been verified on CentOS 6.5 64bit, And the Ganglia version is 3.1. For details about how to install using yum, refer:
1. Overview
The Ganglia project was initiated by the University of California and has become a widely used cluster monitoring software. Monitors and displays various status information of nodes in the cluster, such as cpu, mem, hard disk utilization, I/O load, and network traffic, historical data can also be displayed on the php page in a curve. At the same time, it has good scalability and allows users to add the status information they want to monitor. Based on the visualized data, it is easy to know the health status of the cluster, and you can also analyze the optimization of the cluster.
All the data collected will affect the node performance multiple times. The jitters in the network occur in a large number of small messages at the same time. This problem can be avoided by keeping the node clock consistent through the ntp service.
The working principle of Ganglia is as follows: