当前位置:网站首页>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
边栏推荐
- Kingbasees SQL language reference manual of Jincang database (7. Conditional expression)
- ES Cluster in Red status: what about write & delete operations?
- Redis持久化-RDB
- Kingbasees SQL language reference manual of Jincang database (9. Common DDL clauses)
- 逆序打印链表
- Solution to slow download speed of vagrant
- Learn about spark project on nebulagraph
- Two auxiliary functions of integral Mall for business user operation
- CANoe-XML在Test Modules中的应用
- Chapter 1 - Construction of development environment
猜你喜欢

Redis发布订阅

leetcode-Array

Select sort / insert sort / bubble sort

Benji Bananas 开启第二季边玩边赚奖励活动,支持使用多张 Benji 通行证!

解决Vagrant报错b:48:in `join‘: incompatible character encodings: GBK and UTF-8 (Encoding::Compatib

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

为什么LPDDR不能完全代替DDR?

leetcode-Array

Redis master-slave replication

ETCD数据库源码分析——Cluster membership changes日志
随机推荐
leetcode-aboutString
金仓数据库 KingbaseES SQL 语言参考手册 (6. 表达式)
Redis persistence RDB
How can red star Macalline design cloud upgrade the traditional home furnishing industry in ten minutes to produce film and television level interior design effects
[MySQL must know and know] time function number function string function condition judgment
语法泛化三种可行方案介绍
某公司给每个工位装监控:只为看员工写代码?
Realize channel routing based on policy mode
Use of feign (Part 2)
Binary sort tree (BST)~
K. Link with Bracket Sequence I dp
Redis transaction
Kingbasees SQL language reference manual of Jincang database (8. Functions (XI))
ES Cluster in Red status: what about write & delete operations?
The refurbishment and counterfeiting of chips have made people feel numb
解决Vagrant报错b:48:in `join‘: incompatible character encodings: GBK and UTF-8 (Encoding::Compatib
Recursive processing - subproblem
程序员如何改善精神内耗?
Unity Profiler
Motor control column summary