https://github.com/didi/sgt
didiyun super-agent daemon
https://github.com/didi/sgt
Last synced: 7 months ago
JSON representation
didiyun super-agent daemon
- Host: GitHub
- URL: https://github.com/didi/sgt
- Owner: didi
- License: apache-2.0
- Created: 2018-10-12T05:17:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T08:31:49.000Z (about 7 years ago)
- Last Synced: 2024-06-18T22:59:49.733Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 58
- Watchers: 12
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SGT
## 背景
此进程在滴滴云上用于管理机器上面的其他agent,比如监控的agent、安全的agent,管理主要是:安装、升级、卸载、查看启动状态,不做其他事情。省去客户手工安装其他agent的工作。
## 安装
虚机创建的时候会自动安装此进程,如需对存量虚机安装,可以执行:
```
curl -s http://mirrors.intra.didiyun.com/didiyun_resource/sgd-v1.sh | bash
```
只能在滴滴云的虚机里运行这条指令,适用64位linux系统
## 资源占用
安装完成之后机器上会有sgd和sga两个进程,sgd内存占用小于10MB,承担管理其他agent的核心业务逻辑,sga内存占用小于4MB,是sgd进程的伴生进程,在sgd挂掉的时候负责将其拉起。cpu使用率小于1%
## 规范要求
sgd管理的其他agent需要提供control脚本,打到tar.gz包里,control脚本需要具备可执行权限,支持这些参数:pid | version | start | stop | uninstall | install,sgd就是利用业务agent的control脚本来做管理的