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

[v1.24] use container stats from cadvisor for cri-dockerd #74

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

kinarashah
Copy link
Member

@kinarashah kinarashah commented Feb 14, 2023

Issue

The main issue around cpu spike with >=v1.24 RKE1 clusters is Kubernetes deprecating internal dockershim with 1.24 and Rancher now using cri-dockerd - this means that all stats are now collected by cri-dockerd talking to docker api directly instead of getting them from cadvisor. The docker calls themselves seem to be the bottleneck, which changes from system to system. (This is confirmed by internal testing and varying results on different user setups).

rancher/rancher#38816

Fix

The workaround would be to build our own kubelet that installs docker plugin for cadvisor and continue reading stats the old way.

@kinarashah kinarashah changed the title use container stats from cadvisor for cri-dockerd [v1.24] use container stats from cadvisor for cri-dockerd Feb 15, 2023
@kinarashah
Copy link
Member Author

Note: This PR is still marked as WIP because yet to add drone build logic for it.

But following tags have the linked fix for testing purposes:
v1.24: https://github.com/rancher/kubernetes/releases/tag/v1.24.10-rc.1-rancher1
v1.25: https://github.com/rancher/kubernetes/releases/tag/v1.25.6-rc.1-rancher1

They have been pulled into rancher/hyperkube for v1.24.10-rancher3 and v1.25.6-rancher3 respectively.

@kinarashah kinarashah marked this pull request as ready for review February 15, 2023 23:12
@kinarashah kinarashah marked this pull request as draft February 15, 2023 23:13
@kinarashah kinarashah marked this pull request as ready for review February 16, 2023 21:35
Copy link
Collaborator

@snasovich snasovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed non-vendor updates commits, looks sane to me

Copy link

@Oats87 Oats87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Dockerfile.dapper Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants