Ambari-server源码分析(一):Agent组件

本文介绍了Ambari中AgentResource的作用及HeartBeatHandler的工作原理。AgentResource为Ambari Agent提供集群配置变更获取及节点状态上报的REST接口。HeartBeatHandler负责处理来自Agent的心跳信息,将信息传递给其他模块并处理心跳响应队列。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

REST---->AgentResource----->HeartBeatHander
1,AgentResource 
 Agent Resource represents Ambari agent controller.
 It provides API for Ambari agents to get the cluster configuration changes
 as well as report the node attributes and state of services running the on
 the cluster nodes  
 AgentResource提供处理Agent请求的REST接口
2, HeartBeatHander
This class handles the heartbeats coming from the agent, passes on the information
to other modules and processes the queue to send heartbeat response. 

HeartBeatHander提供真正的处理服务,并将响应结果返回给AgentResource 


未完待续

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值