-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Calico node spikes with memory usage after upgrading to 3.20 #4810
Comments
@invidian thanks for the report - could you share a little bit more information about your setup? Where is this cluster running? Are you using iptables or BPF mode? VXLAN or BGP? What query are you using to measure calico/node memory usage? I'd like to attempt to reproduce this as closely as possible. |
@invidian if possible, it would be really helpful if you could collect a felix memory profile as well. You can do that by:
That should help me identify where the memory is being used. |
@caseydavenport thanks for having a look. I'll try to collect some information next week. It seems GitHub didn't send any notifications about your comments to me, perhaps because of the outage yesterday. |
Only has been running for 3h - but you can see the gradual increase tyvm to Shaun for helping me get the pprof. |
|
Cracking the profiles yields the attached memory diff. Since most of the memory is leaked from |
@george-angel @invidian Please try v3.21.0 and let us know if that resolves the issue. |
I'm testing v3.21.0 right now and things looks good so far. Downgrading to v3.20.2 and I definitely see a sudden increase in I think it can be closed in favor of #5018 then! |
Great, thanks for letting us know. |
Expected Behavior
Memory usage of DaemonSet remains stable.
Current Behavior
Memory usage is now spiky, occasionally triggering OOM on small nodes. This graph shows memory usage after updating from 3.19.1 to 3.20.0.
Steps to Reproduce (for bugs)
helm repo add flexkube https://flexkube.github.io/charts/
helm upgrade --install --wait -n kube-system calico flexkube/calico
Context
Your Environment
My config:
The text was updated successfully, but these errors were encountered: