CloudOS的os-weave-scope-agent-xv647容器CPU使用率持续过高,这个容器是干什么用的,这个问题需要怎么解决。
CloudOS版本E5138P01
CloudOS的os-weave-scope-agent-xv647容器CPU使用率持续过高,这个容器是干什么用的,这个问题需要怎么解决。
CloudOS版本E5138P01
(0)
os-weave-scope-agent-xv647
是 CloudOS 中用于容器监控的代理组件,属于 Weave Scope 的一部分。其核心功能包括:
resources.limits.cpu
,导致资源争抢;rate()
或 irate()
函数)未优化,触发代理频繁计算。resources:
limits:
cpu: "1" # 根据实际负载调整
requests:
cpu: "0.5"
interval
参数(建议 ≥30 秒);--probe.xxx
参数过滤非必要指标(如禁用进程级监控)。kubectl logs os-weave-scope-agent-xv647 -c scope-agent | grep "connection failed" # 查看连接错误日志
rate(container_cpu_usage_seconds_total{pod="os-weave-scope-agent-xv647", cOntainer="scope-agent"}[5m])
若问题持续影响业务,可执行以下操作:
kubectl delete pod os-weave-scope-agent-xv647 # 触发重建
pprof
抓取代理进程的性能分析数据,定位代码级瓶颈;(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论