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

bugfix: 选择主机数量较多的动态分组执行时接口超时 #1518

Closed
jsonwan opened this issue Nov 23, 2022 · 1 comment
Closed
Assignees
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy

Comments

@jsonwan
Copy link
Collaborator

jsonwan commented Nov 23, 2022

Version / Branch / tag
3.5.x

出了什么问题?(What Happened?)
在快速执行脚本页面选择主机数量较多(>5000)的动态分组执行时,报接口超时无法执行

如何复现?(How to reproduce?)
在快速执行脚本页面选择主机数量较多(>5000)的动态分组尝试执行

预期结果(What you expect?)
能够正常执行

@jsonwan jsonwan added the kind/bug 程序故障Bug,漏洞 label Nov 23, 2022
@jsonwan jsonwan self-assigned this Nov 23, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Nov 24, 2022
jsonwan added a commit to jsonwan/bk-job that referenced this issue Nov 25, 2022
@jsonwan
Copy link
Collaborator Author

jsonwan commented Nov 25, 2022

image
造成性能问题的原因在于循环多次查DB获取主机详情信息,此处应改为批量查询。

wangyu096 added a commit that referenced this issue Nov 25, 2022
bugfix: 选择主机数量较多的动态分组执行时接口超时 #1518
jsonwan added a commit to jsonwan/bk-job that referenced this issue Nov 28, 2022
jsonwan added a commit that referenced this issue Nov 28, 2022
bugfix: 选择主机数量较多的动态分组执行时接口超时 #1518
jsonwan added a commit to jsonwan/bk-job that referenced this issue Nov 28, 2022
jsonwan added a commit that referenced this issue Nov 28, 2022
bugfix: 选择主机数量较多的动态分组执行时接口超时 #1518
@bkjob-bot bkjob-bot added the stage/test Test environment in tencent has been deploy label Dec 14, 2022
@bkjob-bot bkjob-bot added the stage/prod Production environment in tencent has been deploy label Dec 20, 2022
@bkjob-bot bkjob-bot added the done 已上线到正式环境并验收通过 label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy
Projects
None yet
Development

No branches or pull requests

2 participants