Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (37 loc) · 1.91 KB

Index.md

File metadata and controls

43 lines (37 loc) · 1.91 KB

Agent主机

每个Agent主机为一个独立的服务器,用来向TeaWeb上报本服务器信息,以便于TeaWeb可以展示这些独立服务器的信息;运维人员也可以在TeaWeb上配置Agent相关信息,TeaWeb会自动同步到Agent。

结构

以下是一个简单的结构示例:

|-------------------|		   |------------------------|
|    				|   <-->   | Agent1(192.168.1.100)  | 
|					|		   |						|
|					|		   | App1, App2, ... 		|	   
|					| 		   |------------------------|
|					|
|					| 		   |------------------------|
|	Master(TeaWeb) 	|   <-->   | Agent2(192.168.1.101)  |
|   (192.168.1.2)	|		   |						|
|	     			|		   | App1, App2, ... 		|	   
|					| 		   |------------------------|
|					|
|					| 		   |------------------------|
|					|   <-->   |           ...          |
|-------------------| 		   |------------------------|

其中:

  • Master - 主控制服务器,TeaWeb部署在此服务器上,用来接收Agent发送的数据、向Agent发送在TeaWeb平台上的配置;
  • Agent - Agent主机,TeaWeb Agent部署在此类服务器上,接收Master发送的配置信息、向Master发送本机产生的数据。

一个Master可以添加多个Agent,实际部署时要考虑主服务器的性能,来决定最多添加多少个Agent

本地主机

TeaWeb启动时,会启动一个和TeaWeb同服务器的本地Agent,行为和一般的Agent一致。

Agent主机信息

  • 基本信息
    • 主机名 - 容易识别主机用途的名字
    • 主机地址 - 主机的IP地址
    • ID - 主机的ID,通常是系统随机生成
    • 密钥 - 连接Master所用的密钥
    • 允许所有的IP - 是否限制主机程序必须在某个IP上运行,默认是不限制的
  • App(应用) - 一个Agent上可以设置多个App,具体请看App(应用)

安装Agent

请在这里查看Agent安装文档