当前位置:网站首页>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 语言参考手册 (6. 表达式)
- Mysql45 talking about logging system: how does an SQL UPDATE statement execute?
- Mongodb tutorial Chapter 08 comparison operators
- VS中使用动态库
- Mba-day29 arithmetic - preliminary understanding of absolute value
- Application of canoe XML in test modules
- 满二叉树 / 真二叉树 / 完全二叉树 ~
- “子问题的递归处理”——判断两棵树是不是相同的树——以及 另一颗树的子树
- [highly available MySQL solution] centos7 configures MySQL master-slave replication
- 柠檬班自动化学习毕竟
猜你喜欢

idea yml 文件代码不提示解决方案

Redis publish subscription

数据库sql语言实战

Embedded general learning route arrangement

Mba-day28 concept of number - exercise questions

You'd better not take this kind of project!

1.12 Web开发基础

Benji Banas launched the second season of earn while playing bonus activities, supporting the use of multiple Benji passes!

Another open source artifact, worth collecting and learning!

Kingbasees SQL language reference manual of Jincang database (7. Conditional expression)
随机推荐
MBA-day29 算术-绝对值初步认识
Debugging sharp weapon! A lightweight log library log.c
Kingbasees SQL language reference manual of Jincang database (9. Common DDL clauses)
漫谈软件缺陷管理的实践
Flex layout
Print linked list in reverse order
Database SQL language practice
Realize channel routing based on policy mode
The time complexity of two recursive entries in a recursive function
Mysql45 talking about global lock, table lock and row lock
Kingbasees SQL language reference manual of Jincang database (7. Conditional expression)
数据库sql语言实战
[cloud native] introduction and use of feign of microservices
[2023 Jerry technology approval test questions in advance] ~ questions and reference answers
How to view the container name in pod
Rocbossphp free open source light community system
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
"Recursive processing of subproblems" -- judging whether two trees are the same tree -- and the subtree of another tree
Use latex to typeset multiple-choice test paper
Three graduates, three years of experience in embedded software