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

支持批量安装 Agent #10024

Open
irwinsun opened this issue Feb 22, 2024 · 3 comments
Open

支持批量安装 Agent #10024

irwinsun opened this issue Feb 22, 2024 · 3 comments
Assignees
Labels
area/ci/agent 构建机Agent issue kind/enhancement 功能改进特性 todo todo

Comments

@irwinsun
Copy link
Member

irwinsun commented Feb 22, 2024

需求背景:

当用户有大批新机需要安装时,希望能简化安装流程,自动化去添加构建机
比如支持通过接口导入或批量导入

目前已有的batch_install.bat 方案

  • 下载好某个项目下的的agent.zip(未安装过)
  • 到目标机器解压后执行 batch_install.bat (linux 也可照提供一个类似的 shell 脚本)
    • batch_install.bat 会拉起 installer进程
    • installer 进程向后台请求batch_zip接口,分配得到新 agent信息用于安装

请根据上述需求描述和已有方案综合考虑细化改进。

@irwinsun irwinsun added kind/enhancement 功能改进特性 area/ci/agent 构建机Agent issue labels Feb 22, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 17, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 17, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 17, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 17, 2024
@bkci-bot bkci-bot added the todo todo label Mar 17, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 18, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 18, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 18, 2024
@irwinsun
Copy link
Member Author

需要增加:
1、防止被爆破,构建机导入数量上限限制,可用ImportServerNodeUtils
2、批量下线、删除接口

tangruotian added a commit to tangruotian/bk-ci that referenced this issue Mar 18, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Apr 11, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Apr 11, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Apr 11, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Apr 12, 2024
tangruotian added a commit to tangruotian/bk-ci that referenced this issue Apr 12, 2024
@tangruotian
Copy link
Collaborator

方案:用户点开安装第三方构建机选择好系统和区域后,点击批量安装时会生成一个带有有时间限制的token的安装命令,用户在有效期内可以使用该命令随意安装agent,每次安装的都是新的agent。有效期超过则无法安装,需要重新点击安装第三方构建机按钮生成。

@fayewong-v5
Copy link
Contributor

统一生成带token的安装命令,不区分是否为批量安装

tangruotian added a commit to tangruotian/bk-ci that referenced this issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci/agent 构建机Agent issue kind/enhancement 功能改进特性 todo todo
Projects
None yet
Development

No branches or pull requests

4 participants