{"id":28729767,"url":"https://github.com/didi/sgt","last_synced_at":"2025-06-15T17:11:00.598Z","repository":{"id":46091804,"uuid":"152697502","full_name":"didi/sgt","owner":"didi","description":"didiyun super-agent daemon","archived":false,"fork":false,"pushed_at":"2018-11-08T08:31:49.000Z","size":26,"stargazers_count":58,"open_issues_count":0,"forks_count":20,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-06-18T22:59:49.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-12T05:17:10.000Z","updated_at":"2024-04-25T02:56:35.000Z","dependencies_parsed_at":"2022-07-19T02:32:10.097Z","dependency_job_id":null,"html_url":"https://github.com/didi/sgt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/didi/sgt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fsgt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fsgt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fsgt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fsgt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didi","download_url":"https://codeload.github.com/didi/sgt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fsgt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260016055,"owners_count":22946321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-15T17:10:59.943Z","updated_at":"2025-06-15T17:11:00.586Z","avatar_url":"https://github.com/didi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SGT\n\n## 背景\n\n此进程在滴滴云上用于管理机器上面的其他agent，比如监控的agent、安全的agent，管理主要是：安装、升级、卸载、查看启动状态，不做其他事情。省去客户手工安装其他agent的工作。\n\n## 安装\n\n虚机创建的时候会自动安装此进程，如需对存量虚机安装，可以执行：\n\n```\ncurl -s http://mirrors.intra.didiyun.com/didiyun_resource/sgd-v1.sh | bash\n```\n\n只能在滴滴云的虚机里运行这条指令，适用64位linux系统\n\n## 资源占用\n\n安装完成之后机器上会有sgd和sga两个进程，sgd内存占用小于10MB，承担管理其他agent的核心业务逻辑，sga内存占用小于4MB，是sgd进程的伴生进程，在sgd挂掉的时候负责将其拉起。cpu使用率小于1%\n\n## 规范要求\n\nsgd管理的其他agent需要提供control脚本，打到tar.gz包里，control脚本需要具备可执行权限，支持这些参数：pid | version | start | stop | uninstall | install，sgd就是利用业务agent的control脚本来做管理的\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Fsgt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidi%2Fsgt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Fsgt/lists"}