Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The kubelet /stats/summary is too expensive on windows #82522
Collect host and container information via kubelet stats/summay. By looking the kubelet code ,it's collected by cadvisor and the stats/summary request is kept within 50 ms.
But the implementation in the Windows environment is very cumbersome。First it will get all the pods managed by kubelet ，and call docker stats request one by one (very very expensive)
This is my set of test data
The pod is very sample just the
On the Linux platform, the time cost will not change too much and remain within 100ms.
By studying the kubelet code, the main time consuming is to request the stats of each container through docker, which takes up almost 95% of the entire request time.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Deploy 5 to 10 pods to the windows host then request kubelet 10255 stats/summay
Anything else we need to know?: