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)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論