Replies: 5 comments 8 replies
-
Simply looking at The numbers you're seeing in Rancher are probably the former. If you want to see the latter, you can run something like If you want something to run on the node, you could also look at |
Beta Was this translation helpful? Give feedback.
-
same issue for our cluster also only one node reached around 81% and the remaining nodes under 70 % ram usage |
Beta Was this translation helpful? Give feedback.
-
we have the same issue for v1.24.10+rke2r1 version for example: used 8gb but kubectl shows: 11566Mi used |
Beta Was this translation helpful? Give feedback.
-
The metrics come from cadvisor and are exposed via |
Beta Was this translation helpful? Give feedback.
-
Hi, if you guys still have this problem, I found a workaround. It seems like there is a problem with how calculations are made using cgroupv2. Patch will probably come in 1.29. I downgraded my nodes to use cgroupv1 by adding the following kernel parameter:
This will force systemd to use cgroupv1. Metrics are a lot more coherent now. I don't know if there are more consequences for doing this, so be careful if doing this in prod envs. Memory resource management could be affected as stated in the k8s docs:
Related issues and links: |
Beta Was this translation helpful? Give feedback.
-
Environmental Info:
RKE2 Version:
v1.24.7+rke2r1
Node(s) CPU architecture, OS, and Version:
amd64
Ubuntu 22.04
Cluster Configuration:
3 Server
3 Agents
Describe the bug:
My Cluster is reporting me 50% Usage for Memory on Worker-01.
I've checked the usage via kubectl top / k9s / Rancher UI
Memory Avaible 15967
Used 7980
I've also summed up the usage of the pod's which are running on this worker.
Total: 724
Then I've checked on the OS my avaible and used memory
In my opinion there is only 20% used and not 50%
Steps To Reproduce:
I've installed rke2 on already existing VM's to installed it with the installation command. No Node drivers etc.
Expected behavior:
Correct Number of Used RAM Memory
Actual behavior:
Wrong Number
Beta Was this translation helpful? Give feedback.
All reactions