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

perf: 优化获取容器详情API性能,解决容器列表加载超时问题 #3105

Closed
wangyu096 opened this issue Jul 10, 2024 · 0 comments
Assignees
Labels
done 已上线到正式环境并验收通过 kind/enhancement 功能改进特性

Comments

@wangyu096
Copy link
Collaborator

wangyu096 commented Jul 10, 2024

  • 错误日志
[2024-07-09 22:58:09.833] INFO [job-manage,7dd40326c0605bdcb1e6f86c64ed39f3,283a071de7953fea] 6 --- [http-nio-19803-exec-46] c.t.bk.job.common.cc.sdk.BizCmdbClient : [AbstractBkApiClient] Request|method=POST|uri=/api/v3/findmany/kube/container/by_topo|reqStr={"page":{"start":0,"limit":0,"sort":"","enable_count":true},"bk_supplier_account":"tencent","bk_biz_id":101010,"container_filter":{"condition":"AND","rules":[{"field":"id","operator":"in","value":[144639291]}]},"container_fields":["id","container_uid","name"],"pod_fields":["id","labels","name"]}
  • 原因
    当业务下的 container 和 pod 太多,使用容器属性查询+count 会导致 cmdb 查询超时。
@wangyu096 wangyu096 added kind/enhancement 功能改进特性 backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 labels Jul 10, 2024
@wangyu096 wangyu096 self-assigned this Jul 10, 2024
jsonwan added a commit that referenced this issue Jul 10, 2024
perf: 优化获取容器详情API性能,解决容器列表加载超时问题 #3105
@bkjob-bot bkjob-bot added for gray 可以在灰度环境/预发布环境验收 done 已上线到正式环境并验收通过 and removed backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 for gray 可以在灰度环境/预发布环境验收 labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/enhancement 功能改进特性
Projects
None yet
Development

No branches or pull requests

2 participants