7 Star 6 Fork 9

NeatLogic / neatlogic-tagent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 3.68 KB
一键复制 编辑 原始数据 按行查看 历史
zenkiray 提交于 2024-05-08 14:47 . adjust

中文 / English


About

neatlogic-agent is the maintenance platform for Tagent, mainly used to manage the status of tagent.

Tagent Registration

Configuration

Tagent-side Configuration

Go to the /opt/tagent/run/root/conf directory and edit the tagent.conf file. Key parameter details:

Parameter Remarks Required
credential Encrypted password string Yes
listen.port Port of the tagent Yes
proxy.group runner group ip:port No
proxy.group.id runner group id No
proxy.registeraddress Registration address of tagent in runner, including tenant UUID Yes
tagent.id tagent id No
tenant Tenant UUID Yes

Example for a tagent installed on 192.168.0.25, runner on 192.168.0.21 (service port 8084, heartbeat port 8888), and neatlogic on 192.168.0.25 (tenant: test):

credential={ENCRYPTED}19chdeh34c738cb575fef816607
exec.timeout=900
listen.addr=0.0.0.0
listen.backlog=16
listen.port=3939
proxy.group=192.168.0.21:8888
proxy.group.id=
proxy.registeraddress=http://192.168.0.21:8084/autoexecrunner/public/api/rest/tagent/register?tenant=test
read.timeout=5
tagent.id=123
tenant=test

Neatlogic-side Configuration

Add the runner group on the Executor Group Management page, and the network range must include the tagent's IP address. img.png img.png

Start Tagent Service

1. Start the Tagent service command

service tagent start
or:
/bin/systemctl start tagent.service

2. Stop the Tagent service command

service tagent stop
or:
/bin/systemctl stop tagent.service 

Registration Flow Among the Three Parties

img.png

Note:

  • During the registration in neatlogic, the IP of the tagent is first determined to be within which runner group's network range. Once matched with a runner group, the runner within the group will be used.
  • After tagent registers with neatlogic, the information of tagent will be updated to neatlogic as long as the heartbeat between tagent and runner is normal.
  • A series of operations on tagent in neatlogic will be executed through the runner.

Logic of Registration ID and IP

img_1.png

Note:

  • Overlapping IPs of two tagents are allowed, but they cannot contain the primary IP of

other tagents. An exception will be thrown during registration if this situation occurs【Contains the primary IP of other tagents】.

  • If two or more tagents are found through the primary IP of tagent, an exception will be thrown【The current primary IP is included in multiple tagents】.
  • If tagent is still in a connected state during registration, an exception will be thrown【IP conflict】.
  • When the port is the same, if the registration IP is contained by an existing tagent, it is considered the same tagent.
  • If the IP is the same but the port is different, it is considered a different tagent.
  • When the port is the same, each IP will correspond to a tagent account. In the case of overlapping IPs, one IP will only correspond to one account.
Java
1
https://gitee.com/neat-logic/neatlogic-tagent.git
git@gitee.com:neat-logic/neatlogic-tagent.git
neat-logic
neatlogic-tagent
neatlogic-tagent
develop3.0.0

搜索帮助