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

upgrade cadvisor to reduce crane-agent cpu usage #845

Closed
xrmzju opened this issue Aug 8, 2023 · 0 comments · Fixed by #846
Closed

upgrade cadvisor to reduce crane-agent cpu usage #845

xrmzju opened this issue Aug 8, 2023 · 0 comments · Fixed by #846
Labels
kind/bug Something isn't working

Comments

@xrmzju
Copy link
Contributor

xrmzju commented Aug 8, 2023

Describe the bug
The current version of cAdvisor (v0.39.2) reads extra cgroup files even though we have specified that the only metrics we need are CpuUsageMetrics and ProcessSchedulerMetrics .This causes a lot of file reading, which consumes a lot of CPU. More details can be found in this issue.

Reproduce steps

  1. Run crane-agent on a node with more than 100 pods.
  2. Observe the CPU usage, which can be quite high.
  3. In our environment, running crane-agent on a node with 150 pods can consume up to 8 cores.

Expected behavior
We expect cAdvisor to only read the cgroup files that are necessary to collect the specified metrics, and not to read any extra files that are not needed.

Screenshots

Environment (please complete the following information):

  • K8S Version: [e.g. 1.22]
@xrmzju xrmzju added the kind/bug Something isn't working label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant