当前位置:网站首页>Ganglia安装部署流程
Ganglia安装部署流程
2022-07-26 05:58:00 【Huang3stone】
Ganglia安装部署过程
ganglia由分三个部分组成gmond,gmetad、gweb。
- gmond负责采集数据(需要进行监测的节点都要安装)
- gmetad负责接收gmond收集的数据(只需要在部署Web服务的节点安装)
- gweb负责展现gmetad的数据(只需要在部署Web服务的节点安装)
第一步 安装文件
- 安装epel源,安装命令如下(所有节点都安装)
yum -y install epel-release
- 安装gmond(采集数据的节点安装)
yum -y install ganglia-gmond
- 下载gmetad(Web服务节点安装)
yum -y install ganglia-gmetad
- 下载 gweb(Web服务节点安装)
sudo yum -y install httpd php # 需要额外安装httpd、php
sudo yum -y install ganglia-web
第二步 配置文件
- 修改配置文件vim /etc/httpd/conf.d/ganglia.conf
# Ganglia monitoring system php web frontend
Alias /ganglia /usr/share/ganglia
<Location /ganglia>
Require all granted
#Order deny,allow
#Deny from all
#Allow from all
# Allow from 127.0.0.1
# Allow from ::1
# Allow from .example.com
</Location>
- 修改配置文件/etc/ganglia/gmetad.conf
data_source “hadoop202” 192.168.88.202
- 修改配置文件/etc/ganglia/gmond.conf【这里一个节点配置完,通过scp同步所有节点】(注意:重点关注name,bind以及host的配置信息)
[[email protected] flume]$ sudo vim /etc/ganglia/gmond.conf
修改为:
cluster {
name = "hadoop202" ###名字要和gmetad中的相同
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
#bind_hostname = yes # Highly recommended, soon to be default.
# This option tells gmond to use a source address
# that resolves to the machine's hostname. Without
# this, the metrics may appear to come from any
# interface and the DNS names associated with
# those IPs will be used to create the RRDs.
# mcast_join = 239.2.11.71
host = 192.168.88.202 ###接收数据的节点IP地址
port = 8649
ttl = 1
}
udp_recv_channel {
# mcast_join = 239.2.11.71
port = 8649
bind = 192.168.88.202 ###节点本机的IP地址
retry_bind = true
# Size of the UDP buffer. If you are handling lots of metrics you really
# should bump it up to e.g. 10MB or even higher.
# buffer = 10485760
}
- 修改配置文件/etc/selinux/config【注意:需要重启后才生效】
SELINUX=disabled # 解决冲突
第三步 启动Ganglia
systemctl start httpd.service
systemctl start gmetad.service
systemctl start gmond.service
权限问题
- 关闭防火墙
systemctl stop firewalld
- 授权
chmod -R 777 /var/lib/ganglia
边栏推荐
- Benji Banas launched the second season of earn while playing bonus activities, supporting the use of multiple Benji passes!
- 【2023杰理科技提前批笔试题】~ 题目及参考答案
- Redis transaction
- 1.12 basis of Web Development
- 语法泛化三种可行方案介绍
- Mysql45 talking about logging system: how does an SQL UPDATE statement execute?
- Using easyexcel to import tables to realize batch insertion of xlsx files ----- MySQL of Linux
- CANoe-XML在Test Modules中的应用
- Chapter 1 - Construction of development environment
- JDBC streaming query and cursor query
猜你喜欢
![[the most complete and detailed] ten thousand words explanation: activiti workflow engine](/img/4c/2e43aef33c6ecd67d40730d78d29dc.png)
[the most complete and detailed] ten thousand words explanation: activiti workflow engine

Kingbasees SQL language reference manual of Jincang database (8. Functions (XI))

Qu Weihai, chairman and CEO of Xinyi interactive, adheres to mutual benefit and win-win results, and Qu Weihai promotes enterprise development

Mysql45 talks about transaction isolation: why can't I see it after you change it?

漫谈软件缺陷管理的实践

Mysql45 talking about logging system: how does an SQL UPDATE statement execute?

【Oracle SQL】计算同比与环比(列转行进行偏移)

Is it really hopeless to choose electronic engineering and be discouraged?

NFT in the eyes of blackash: the platform is crying for slaughter, and users send money to the door

递归函数中 有两个递归入口的时间复杂度
随机推荐
ES Cluster in Red status: what about write & delete operations?
金仓数据库 KingbaseES SQL 语言参考手册 (11. SQL语句:ABORT 到 ALTER INDEX)
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(十))
Kingbasees SQL language reference manual of Jincang database (8. Function (10))
Why can't lpddr completely replace DDR?
Application of canoe XML in test modules
Kingbasees SQL language reference manual of Jincang database (11. SQL statement: abort to alter index)
Acquisition of bidding information
No EGL display error resolution
Full binary tree / true binary tree / complete binary tree~
金仓数据库 KingbaseES SQL 语言参考手册 (10. 查询和子查询)
“子问题的递归处理”——判断两棵树是不是相同的树——以及 另一颗树的子树
leetcode-Array
1.12 basis of Web Development
Who is responsible for the problems of virtual idol endorsement products? And listen to the lawyer's analysis
Benji Banas launched the second season of earn while playing bonus activities, supporting the use of multiple Benji passes!
ES Cluster in Red status: what about write & delete operations?
Practice operation and maintenance knowledge accumulation
Introduction to Chinese text error correction task
Ros2 preliminary: basic communication with topic