Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化GoAgent对于后台资源占用 #9597

Closed
tangruotian opened this issue Oct 25, 2023 · 1 comment
Closed

优化GoAgent对于后台资源占用 #9597

tangruotian opened this issue Oct 25, 2023 · 1 comment
Assignees
Labels
done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy kind/enhancement 功能改进特性 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功

Comments

@tangruotian
Copy link
Collaborator

tangruotian commented Oct 25, 2023

优化 goagent 现有逻辑可能导致的后台资源浪费,具体如下
1 、整合升级心跳等到同一接口
2 、每秒会有心跳,升级,任务三个向后台的请求 -- 改造为以 websocket 长链接为主短链接为辅的方式

@tangruotian tangruotian added the kind/enhancement 功能改进特性 label Oct 25, 2023
@irwinsun
Copy link
Member

irwinsun commented Oct 25, 2023

如果一台构建机器因为基础环境异常:

  • 目录迁移导致.agent.properties里的JDK路径不对、
  • worker丢失无法恢复、
  • 磁盘空间不足
  • 目录权限不正确权限不足
  • 网络波动
  • 多个使用了重复配置的 agent request too frequently
    等包括并不局限于上述情况 ,通过升级也无法自愈恢复的,无法正常工作,平台应该:
  • 将异常信息上报给后台,并让其进程退出下线。
  • 异常信息在构建机详情页面:后台将异常信息通过 thirdPartyAgentDetail接口返回增加字段message,前端修改读取message字段并放在状态一行,如下图
image [异常细化单子](https://github.com//issues/9454)

tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 8, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 8, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 16, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 16, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 16, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 22, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 23, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 23, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 24, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Nov 24, 2023
irwinsun added a commit that referenced this issue Nov 28, 2023
优化GoAgent对于后台资源占用 #9597
@bkci-bot bkci-bot added for gray UAT environment in tencent has been deploy streams/for gray stream 灰度环境部署成功 labels Nov 29, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 1, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 1, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 1, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 4, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 4, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 4, 2023
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Dec 6, 2023
@bkci-bot bkci-bot added the streams/done stream 生产部署成功 label Dec 8, 2023
@bkci-bot bkci-bot closed this as completed Dec 8, 2023
@bkci-bot bkci-bot added the done Production environment in tencent has been deploy label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy kind/enhancement 功能改进特性 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功
Projects
None yet
Development

No branches or pull requests

4 participants